# -*- coding: utf-8 -*-
__title__ = ''
__author__ = 'Box Ro'
__mtime__ = '2019-11-11 19:43:21.838677'
__generate_file = '/home/box/quant/boxquant/ctp/gen/g_field_en_cn.py'

from . import Entity


class DisseminationEntity(Entity):
    """信息分发"""

    def __init__(self):
        self.SequenceSeries: float = 0.0
        self.SequenceNo: int = 0


class ReqUserLoginEntity(Entity):
    """用户登录请求"""

    def __init__(self):
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.Password: str = ''
        self.UserProductInfo: str = ''
        self.InterfaceProductInfo: str = ''
        self.ProtocolInfo: str = ''
        self.MacAddress: str = ''
        self.OneTimePassword: str = ''
        self.ClientIPAddress: str = ''
        self.LoginRemark: str = ''
        self.ClientIPPort: int = 0


class RspUserLoginEntity(Entity):
    """用户登录应答"""

    def __init__(self):
        self.TradingDay: str = ''
        self.LoginTime: str = ''
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.SystemName: str = ''
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.MaxOrderRef: str = ''
        self.SHFETime: str = ''
        self.DCETime: str = ''
        self.CZCETime: str = ''
        self.FFEXTime: str = ''
        self.INETime: str = ''


class UserLogoutEntity(Entity):
    """用户登出请求"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''


class ForceUserLogoutEntity(Entity):
    """强制交易员退出"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''


class ReqAuthenticateEntity(Entity):
    """客户端认证请求"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.UserProductInfo: str = ''
        self.AuthCode: str = ''
        self.AppID: str = ''


class RspAuthenticateEntity(Entity):
    """客户端认证响应"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.UserProductInfo: str = ''
        self.AppID: str = ''
        self.AppType: str = ''


class AuthenticationInfoEntity(Entity):
    """客户端认证信息"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.UserProductInfo: str = ''
        self.AuthInfo: str = ''
        self.IsResult: int = 0
        self.AppID: str = ''
        self.AppType: str = ''


class RspUserLogin2Entity(Entity):
    """用户登录应答2"""

    def __init__(self):
        self.TradingDay: str = ''
        self.LoginTime: str = ''
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.SystemName: str = ''
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.MaxOrderRef: str = ''
        self.SHFETime: str = ''
        self.DCETime: str = ''
        self.CZCETime: str = ''
        self.FFEXTime: str = ''
        self.INETime: str = ''
        self.RandomString: str = ''


class TransferHeaderEntity(Entity):
    """银期转帐报文头"""

    def __init__(self):
        self.Version: str = ''
        self.TradeCode: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.TradeSerial: str = ''
        self.FutureID: str = ''
        self.BankID: str = ''
        self.BankBrchID: str = ''
        self.OperNo: str = ''
        self.DeviceID: str = ''
        self.RecordNum: str = ''
        self.SessionID: int = 0
        self.RequestID: int = 0


class TransferBankToFutureReqEntity(Entity):
    """银行资金转期货请求，TradeCode=202001"""

    def __init__(self):
        self.FutureAccount: str = ''
        self.FuturePwdFlag: str = ''
        self.FutureAccPwd: str = ''
        self.TradeAmt: float = 0.0
        self.CustFee: float = 0.0
        self.CurrencyCode: str = ''


class TransferBankToFutureRspEntity(Entity):
    """银行资金转期货请求响应"""

    def __init__(self):
        self.RetCode: str = ''
        self.RetInfo: str = ''
        self.FutureAccount: str = ''
        self.TradeAmt: float = 0.0
        self.CustFee: float = 0.0
        self.CurrencyCode: str = ''


class TransferFutureToBankReqEntity(Entity):
    """期货资金转银行请求，TradeCode=202002"""

    def __init__(self):
        self.FutureAccount: str = ''
        self.FuturePwdFlag: str = ''
        self.FutureAccPwd: str = ''
        self.TradeAmt: float = 0.0
        self.CustFee: float = 0.0
        self.CurrencyCode: str = ''


class TransferFutureToBankRspEntity(Entity):
    """期货资金转银行请求响应"""

    def __init__(self):
        self.RetCode: str = ''
        self.RetInfo: str = ''
        self.FutureAccount: str = ''
        self.TradeAmt: float = 0.0
        self.CustFee: float = 0.0
        self.CurrencyCode: str = ''


class TransferQryBankReqEntity(Entity):
    """查询银行资金请求，TradeCode=204002"""

    def __init__(self):
        self.FutureAccount: str = ''
        self.FuturePwdFlag: str = ''
        self.FutureAccPwd: str = ''
        self.CurrencyCode: str = ''


class TransferQryBankRspEntity(Entity):
    """查询银行资金请求响应"""

    def __init__(self):
        self.RetCode: str = ''
        self.RetInfo: str = ''
        self.FutureAccount: str = ''
        self.TradeAmt: float = 0.0
        self.UseAmt: float = 0.0
        self.FetchAmt: float = 0.0
        self.CurrencyCode: str = ''


class TransferQryDetailReqEntity(Entity):
    """查询银行交易明细请求，TradeCode=204999"""

    def __init__(self):
        self.FutureAccount: str = ''


class TransferQryDetailRspEntity(Entity):
    """查询银行交易明细请求响应"""

    def __init__(self):
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.TradeCode: str = ''
        self.FutureSerial: int = 0
        self.FutureID: str = ''
        self.FutureAccount: str = ''
        self.BankSerial: int = 0
        self.BankID: str = ''
        self.BankBrchID: str = ''
        self.BankAccount: str = ''
        self.CertCode: str = ''
        self.CurrencyCode: str = ''
        self.TxAmount: float = 0.0
        self.Flag: str = ''


class RspInfoEntity(Entity):
    """响应信息"""

    def __init__(self):
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class ExchangeEntity(Entity):
    """交易所"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.ExchangeName: str = ''
        self.ExchangeProperty: str = ''


class ProductEntity(Entity):
    """产品"""

    def __init__(self):
        self.ProductID: str = ''
        self.ProductName: str = ''
        self.ExchangeID: str = ''
        self.ProductClass: str = ''
        self.VolumeMultiple: int = 0
        self.PriceTick: float = 0.0
        self.MaxMarketOrderVolume: int = 0
        self.MinMarketOrderVolume: int = 0
        self.MaxLimitOrderVolume: int = 0
        self.MinLimitOrderVolume: int = 0
        self.PositionType: str = ''
        self.PositionDateType: str = ''
        self.CloseDealType: str = ''
        self.TradeCurrencyID: str = ''
        self.MortgageFundUseRange: str = ''
        self.ExchangeProductID: str = ''
        self.UnderlyingMultiple: float = 0.0


class InstrumentEntity(Entity):
    """合约"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InstrumentName: str = ''
        self.ExchangeInstID: str = ''
        self.ProductID: str = ''
        self.ProductClass: str = ''
        self.DeliveryYear: int = 0
        self.DeliveryMonth: int = 0
        self.MaxMarketOrderVolume: int = 0
        self.MinMarketOrderVolume: int = 0
        self.MaxLimitOrderVolume: int = 0
        self.MinLimitOrderVolume: int = 0
        self.VolumeMultiple: int = 0
        self.PriceTick: float = 0.0
        self.CreateDate: str = ''
        self.OpenDate: str = ''
        self.ExpireDate: str = ''
        self.StartDelivDate: str = ''
        self.EndDelivDate: str = ''
        self.InstLifePhase: str = ''
        self.IsTrading: int = 0
        self.PositionType: str = ''
        self.PositionDateType: str = ''
        self.LongMarginRatio: float = 0.0
        self.ShortMarginRatio: float = 0.0
        self.MaxMarginSideAlgorithm: str = ''
        self.UnderlyingInstrID: str = ''
        self.StrikePrice: float = 0.0
        self.OptionsType: str = ''
        self.UnderlyingMultiple: float = 0.0
        self.CombinationType: str = ''


class BrokerEntity(Entity):
    """经纪公司"""

    def __init__(self):
        self.BrokerID: str = ''
        self.BrokerAbbr: str = ''
        self.BrokerName: str = ''
        self.IsActive: int = 0


class TraderEntity(Entity):
    """交易所交易员"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.TraderID: str = ''
        self.ParticipantID: str = ''
        self.Password: str = ''
        self.InstallCount: int = 0
        self.BrokerID: str = ''


class InvestorEntity(Entity):
    """投资者"""

    def __init__(self):
        self.InvestorID: str = ''
        self.BrokerID: str = ''
        self.InvestorGroupID: str = ''
        self.InvestorName: str = ''
        self.IdentifiedCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.IsActive: int = 0
        self.Telephone: str = ''
        self.Address: str = ''
        self.OpenDate: str = ''
        self.Mobile: str = ''
        self.CommModelID: str = ''
        self.MarginModelID: str = ''


class TradingCodeEntity(Entity):
    """交易编码"""

    def __init__(self):
        self.InvestorID: str = ''
        self.BrokerID: str = ''
        self.ExchangeID: str = ''
        self.ClientID: str = ''
        self.IsActive: int = 0
        self.ClientIDType: str = ''
        self.BranchID: str = ''
        self.BizType: str = ''
        self.InvestUnitID: str = ''


class PartBrokerEntity(Entity):
    """会员编码和经纪公司编码对照表"""

    def __init__(self):
        self.BrokerID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.IsActive: int = 0


class SuperUserEntity(Entity):
    """管理用户"""

    def __init__(self):
        self.UserID: str = ''
        self.UserName: str = ''
        self.Password: str = ''
        self.IsActive: int = 0


class SuperUserFunctionEntity(Entity):
    """管理用户功能权限"""

    def __init__(self):
        self.UserID: str = ''
        self.FunctionCode: str = ''


class InvestorGroupEntity(Entity):
    """投资者组"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorGroupID: str = ''
        self.InvestorGroupName: str = ''


class TradingAccountEntity(Entity):
    """资金账户"""

    def __init__(self):
        self.BrokerID: str = ''
        self.AccountID: str = ''
        self.PreMortgage: float = 0.0
        self.PreCredit: float = 0.0
        self.PreDeposit: float = 0.0
        self.PreBalance: float = 0.0
        self.PreMargin: float = 0.0
        self.InterestBase: float = 0.0
        self.Interest: float = 0.0
        self.Deposit: float = 0.0
        self.Withdraw: float = 0.0
        self.FrozenMargin: float = 0.0
        self.FrozenCash: float = 0.0
        self.FrozenCommission: float = 0.0
        self.CurrMargin: float = 0.0
        self.CashIn: float = 0.0
        self.Commission: float = 0.0
        self.CloseProfit: float = 0.0
        self.PositionProfit: float = 0.0
        self.Balance: float = 0.0
        self.Available: float = 0.0
        self.WithdrawQuota: float = 0.0
        self.Reserve: float = 0.0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.Credit: float = 0.0
        self.Mortgage: float = 0.0
        self.ExchangeMargin: float = 0.0
        self.DeliveryMargin: float = 0.0
        self.ExchangeDeliveryMargin: float = 0.0
        self.ReserveBalance: float = 0.0
        self.CurrencyID: str = ''
        self.PreFundMortgageIn: float = 0.0
        self.PreFundMortgageOut: float = 0.0
        self.FundMortgageIn: float = 0.0
        self.FundMortgageOut: float = 0.0
        self.FundMortgageAvailable: float = 0.0
        self.MortgageableFund: float = 0.0
        self.SpecProductMargin: float = 0.0
        self.SpecProductFrozenMargin: float = 0.0
        self.SpecProductCommission: float = 0.0
        self.SpecProductFrozenCommission: float = 0.0
        self.SpecProductPositionProfit: float = 0.0
        self.SpecProductCloseProfit: float = 0.0
        self.SpecProductPositionProfitByAlg: float = 0.0
        self.SpecProductExchangeMargin: float = 0.0
        self.BizType: str = ''
        self.FrozenSwap: float = 0.0
        self.RemainSwap: float = 0.0


class InvestorPositionEntity(Entity):
    """投资者持仓"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.PosiDirection: str = ''
        self.HedgeFlag: str = ''
        self.PositionDate: str = ''
        self.YdPosition: int = 0
        self.Position: int = 0
        self.LongFrozen: int = 0
        self.ShortFrozen: int = 0
        self.LongFrozenAmount: float = 0.0
        self.ShortFrozenAmount: float = 0.0
        self.OpenVolume: int = 0
        self.CloseVolume: int = 0
        self.OpenAmount: float = 0.0
        self.CloseAmount: float = 0.0
        self.PositionCost: float = 0.0
        self.PreMargin: float = 0.0
        self.UseMargin: float = 0.0
        self.FrozenMargin: float = 0.0
        self.FrozenCash: float = 0.0
        self.FrozenCommission: float = 0.0
        self.CashIn: float = 0.0
        self.Commission: float = 0.0
        self.CloseProfit: float = 0.0
        self.PositionProfit: float = 0.0
        self.PreSettlementPrice: float = 0.0
        self.SettlementPrice: float = 0.0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.OpenCost: float = 0.0
        self.ExchangeMargin: float = 0.0
        self.CombPosition: int = 0
        self.CombLongFrozen: int = 0
        self.CombShortFrozen: int = 0
        self.CloseProfitByDate: float = 0.0
        self.CloseProfitByTrade: float = 0.0
        self.TodayPosition: int = 0
        self.MarginRateByMoney: float = 0.0
        self.MarginRateByVolume: float = 0.0
        self.StrikeFrozen: int = 0
        self.StrikeFrozenAmount: float = 0.0
        self.AbandonFrozen: int = 0
        self.ExchangeID: str = ''
        self.YdStrikeFrozen: int = 0
        self.InvestUnitID: str = ''
        self.PositionCostOffset: float = 0.0


class InstrumentMarginRateEntity(Entity):
    """合约保证金率"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.HedgeFlag: str = ''
        self.LongMarginRatioByMoney: float = 0.0
        self.LongMarginRatioByVolume: float = 0.0
        self.ShortMarginRatioByMoney: float = 0.0
        self.ShortMarginRatioByVolume: float = 0.0
        self.IsRelative: int = 0
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class InstrumentCommissionRateEntity(Entity):
    """合约手续费率"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OpenRatioByMoney: float = 0.0
        self.OpenRatioByVolume: float = 0.0
        self.CloseRatioByMoney: float = 0.0
        self.CloseRatioByVolume: float = 0.0
        self.CloseTodayRatioByMoney: float = 0.0
        self.CloseTodayRatioByVolume: float = 0.0
        self.ExchangeID: str = ''
        self.BizType: str = ''
        self.InvestUnitID: str = ''


class DepthMarketDataEntity(Entity):
    """深度行情"""

    def __init__(self):
        self.TradingDay: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.ExchangeInstID: str = ''
        self.LastPrice: float = 0.0
        self.PreSettlementPrice: float = 0.0
        self.PreClosePrice: float = 0.0
        self.PreOpenInterest: float = 0.0
        self.OpenPrice: float = 0.0
        self.HighestPrice: float = 0.0
        self.LowestPrice: float = 0.0
        self.Volume: int = 0
        self.Turnover: float = 0.0
        self.OpenInterest: float = 0.0
        self.ClosePrice: float = 0.0
        self.SettlementPrice: float = 0.0
        self.UpperLimitPrice: float = 0.0
        self.LowerLimitPrice: float = 0.0
        self.PreDelta: float = 0.0
        self.CurrDelta: float = 0.0
        self.UpdateTime: str = ''
        self.UpdateMillisec: int = 0
        self.BidPrice1: float = 0.0
        self.BidVolume1: int = 0
        self.AskPrice1: float = 0.0
        self.AskVolume1: int = 0
        self.BidPrice2: float = 0.0
        self.BidVolume2: int = 0
        self.AskPrice2: float = 0.0
        self.AskVolume2: int = 0
        self.BidPrice3: float = 0.0
        self.BidVolume3: int = 0
        self.AskPrice3: float = 0.0
        self.AskVolume3: int = 0
        self.BidPrice4: float = 0.0
        self.BidVolume4: int = 0
        self.AskPrice4: float = 0.0
        self.AskVolume4: int = 0
        self.BidPrice5: float = 0.0
        self.BidVolume5: int = 0
        self.AskPrice5: float = 0.0
        self.AskVolume5: int = 0
        self.AveragePrice: float = 0.0
        self.ActionDay: str = ''


class InstrumentTradingRightEntity(Entity):
    """投资者合约交易权限"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.TradingRight: str = ''


class BrokerUserEntity(Entity):
    """经纪公司用户"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.UserName: str = ''
        self.UserType: str = ''
        self.IsActive: int = 0
        self.IsUsingOTP: int = 0
        self.IsAuthForce: int = 0


class BrokerUserPasswordEntity(Entity):
    """经纪公司用户口令"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.Password: str = ''
        self.LastUpdateTime: str = ''
        self.LastLoginTime: str = ''
        self.ExpireDate: str = ''
        self.WeakExpireDate: str = ''


class BrokerUserFunctionEntity(Entity):
    """经纪公司用户功能权限"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.BrokerFunctionCode: str = ''


class TraderOfferEntity(Entity):
    """交易所交易员报盘机"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.TraderID: str = ''
        self.ParticipantID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.OrderLocalID: str = ''
        self.TraderConnectStatus: str = ''
        self.ConnectRequestDate: str = ''
        self.ConnectRequestTime: str = ''
        self.LastReportDate: str = ''
        self.LastReportTime: str = ''
        self.ConnectDate: str = ''
        self.ConnectTime: str = ''
        self.StartDate: str = ''
        self.StartTime: str = ''
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.MaxTradeID: str = ''
        self.MaxOrderMessageReference: str = ''


class SettlementInfoEntity(Entity):
    """投资者结算结果"""

    def __init__(self):
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.SequenceNo: int = 0
        self.Content: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''


class InstrumentMarginRateAdjustEntity(Entity):
    """合约保证金率调整"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.HedgeFlag: str = ''
        self.LongMarginRatioByMoney: float = 0.0
        self.LongMarginRatioByVolume: float = 0.0
        self.ShortMarginRatioByMoney: float = 0.0
        self.ShortMarginRatioByVolume: float = 0.0
        self.IsRelative: int = 0


class ExchangeMarginRateEntity(Entity):
    """交易所保证金率"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InstrumentID: str = ''
        self.HedgeFlag: str = ''
        self.LongMarginRatioByMoney: float = 0.0
        self.LongMarginRatioByVolume: float = 0.0
        self.ShortMarginRatioByMoney: float = 0.0
        self.ShortMarginRatioByVolume: float = 0.0
        self.ExchangeID: str = ''


class ExchangeMarginRateAdjustEntity(Entity):
    """交易所保证金率调整"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InstrumentID: str = ''
        self.HedgeFlag: str = ''
        self.LongMarginRatioByMoney: float = 0.0
        self.LongMarginRatioByVolume: float = 0.0
        self.ShortMarginRatioByMoney: float = 0.0
        self.ShortMarginRatioByVolume: float = 0.0
        self.ExchLongMarginRatioByMoney: float = 0.0
        self.ExchLongMarginRatioByVolume: float = 0.0
        self.ExchShortMarginRatioByMoney: float = 0.0
        self.ExchShortMarginRatioByVolume: float = 0.0
        self.NoLongMarginRatioByMoney: float = 0.0
        self.NoLongMarginRatioByVolume: float = 0.0
        self.NoShortMarginRatioByMoney: float = 0.0
        self.NoShortMarginRatioByVolume: float = 0.0


class ExchangeRateEntity(Entity):
    """汇率"""

    def __init__(self):
        self.BrokerID: str = ''
        self.FromCurrencyID: str = ''
        self.FromCurrencyUnit: float = 0.0
        self.ToCurrencyID: str = ''
        self.ExchangeRate: float = 0.0


class SettlementRefEntity(Entity):
    """结算引用"""

    def __init__(self):
        self.TradingDay: str = ''
        self.SettlementID: int = 0


class CurrentTimeEntity(Entity):
    """当前时间"""

    def __init__(self):
        self.CurrDate: str = ''
        self.CurrTime: str = ''
        self.CurrMillisec: int = 0
        self.ActionDay: str = ''


class CommPhaseEntity(Entity):
    """通讯阶段"""

    def __init__(self):
        self.TradingDay: str = ''
        self.CommPhaseNo: float = 0.0
        self.SystemID: str = ''


class LoginInfoEntity(Entity):
    """登录信息"""

    def __init__(self):
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.LoginDate: str = ''
        self.LoginTime: str = ''
        self.IPAddress: str = ''
        self.UserProductInfo: str = ''
        self.InterfaceProductInfo: str = ''
        self.ProtocolInfo: str = ''
        self.SystemName: str = ''
        self.PasswordDeprecated: str = ''
        self.MaxOrderRef: str = ''
        self.SHFETime: str = ''
        self.DCETime: str = ''
        self.CZCETime: str = ''
        self.FFEXTime: str = ''
        self.MacAddress: str = ''
        self.OneTimePassword: str = ''
        self.INETime: str = ''
        self.IsQryControl: int = 0
        self.LoginRemark: str = ''
        self.Password: str = ''


class LogoutAllEntity(Entity):
    """登录信息"""

    def __init__(self):
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.SystemName: str = ''


class FrontStatusEntity(Entity):
    """前置状态"""

    def __init__(self):
        self.FrontID: int = 0
        self.LastReportDate: str = ''
        self.LastReportTime: str = ''
        self.IsActive: int = 0


class UserPasswordUpdateEntity(Entity):
    """用户口令变更"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.OldPassword: str = ''
        self.NewPassword: str = ''


class InputOrderEntity(Entity):
    """输入报单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.OrderRef: str = ''
        self.UserID: str = ''
        self.OrderPriceType: str = ''
        self.Direction: str = ''
        self.CombOffsetFlag: str = ''
        self.CombHedgeFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeTotalOriginal: int = 0
        self.TimeCondition: str = ''
        self.GTDDate: str = ''
        self.VolumeCondition: str = ''
        self.MinVolume: int = 0
        self.ContingentCondition: str = ''
        self.StopPrice: float = 0.0
        self.ForceCloseReason: str = ''
        self.IsAutoSuspend: int = 0
        self.BusinessUnit: str = ''
        self.RequestID: int = 0
        self.UserForceClose: int = 0
        self.IsSwapOrder: int = 0
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.ClientID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class OrderEntity(Entity):
    """报单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.OrderRef: str = ''
        self.UserID: str = ''
        self.OrderPriceType: str = ''
        self.Direction: str = ''
        self.CombOffsetFlag: str = ''
        self.CombHedgeFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeTotalOriginal: int = 0
        self.TimeCondition: str = ''
        self.GTDDate: str = ''
        self.VolumeCondition: str = ''
        self.MinVolume: int = 0
        self.ContingentCondition: str = ''
        self.StopPrice: float = 0.0
        self.ForceCloseReason: str = ''
        self.IsAutoSuspend: int = 0
        self.BusinessUnit: str = ''
        self.RequestID: int = 0
        self.OrderLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderSubmitStatus: str = ''
        self.NotifySequence: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.OrderSysID: str = ''
        self.OrderSource: str = ''
        self.OrderStatus: str = ''
        self.OrderType: str = ''
        self.VolumeTraded: int = 0
        self.VolumeTotal: int = 0
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.ActiveTime: str = ''
        self.SuspendTime: str = ''
        self.UpdateTime: str = ''
        self.CancelTime: str = ''
        self.ActiveTraderID: str = ''
        self.ClearingPartID: str = ''
        self.SequenceNo: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.UserProductInfo: str = ''
        self.StatusMsg: str = ''
        self.UserForceClose: int = 0
        self.ActiveUserID: str = ''
        self.BrokerOrderSeq: int = 0
        self.RelativeOrderSysID: str = ''
        self.ZCETotalTradedVolume: int = 0
        self.IsSwapOrder: int = 0
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ExchangeOrderEntity(Entity):
    """交易所报单"""

    def __init__(self):
        self.OrderPriceType: str = ''
        self.Direction: str = ''
        self.CombOffsetFlag: str = ''
        self.CombHedgeFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeTotalOriginal: int = 0
        self.TimeCondition: str = ''
        self.GTDDate: str = ''
        self.VolumeCondition: str = ''
        self.MinVolume: int = 0
        self.ContingentCondition: str = ''
        self.StopPrice: float = 0.0
        self.ForceCloseReason: str = ''
        self.IsAutoSuspend: int = 0
        self.BusinessUnit: str = ''
        self.RequestID: int = 0
        self.OrderLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderSubmitStatus: str = ''
        self.NotifySequence: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.OrderSysID: str = ''
        self.OrderSource: str = ''
        self.OrderStatus: str = ''
        self.OrderType: str = ''
        self.VolumeTraded: int = 0
        self.VolumeTotal: int = 0
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.ActiveTime: str = ''
        self.SuspendTime: str = ''
        self.UpdateTime: str = ''
        self.CancelTime: str = ''
        self.ActiveTraderID: str = ''
        self.ClearingPartID: str = ''
        self.SequenceNo: int = 0
        self.BranchID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ExchangeOrderInsertErrorEntity(Entity):
    """交易所报单插入失败"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderLocalID: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class InputOrderActionEntity(Entity):
    """输入报单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OrderActionRef: int = 0
        self.OrderRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.OrderSysID: str = ''
        self.ActionFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeChange: int = 0
        self.UserID: str = ''
        self.InstrumentID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class OrderActionEntity(Entity):
    """报单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OrderActionRef: int = 0
        self.OrderRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.OrderSysID: str = ''
        self.ActionFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeChange: int = 0
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.StatusMsg: str = ''
        self.InstrumentID: str = ''
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ExchangeOrderActionEntity(Entity):
    """交易所报单操作"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.OrderSysID: str = ''
        self.ActionFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeChange: int = 0
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.BranchID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ExchangeOrderActionErrorEntity(Entity):
    """交易所报单操作失败"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.OrderSysID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class ExchangeTradeEntity(Entity):
    """交易所成交"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.TradeID: str = ''
        self.Direction: str = ''
        self.OrderSysID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.TradingRole: str = ''
        self.ExchangeInstID: str = ''
        self.OffsetFlag: str = ''
        self.HedgeFlag: str = ''
        self.Price: float = 0.0
        self.Volume: int = 0
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.TradeType: str = ''
        self.PriceSource: str = ''
        self.TraderID: str = ''
        self.OrderLocalID: str = ''
        self.ClearingPartID: str = ''
        self.BusinessUnit: str = ''
        self.SequenceNo: int = 0
        self.TradeSource: str = ''


class TradeEntity(Entity):
    """成交"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.OrderRef: str = ''
        self.UserID: str = ''
        self.ExchangeID: str = ''
        self.TradeID: str = ''
        self.Direction: str = ''
        self.OrderSysID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.TradingRole: str = ''
        self.ExchangeInstID: str = ''
        self.OffsetFlag: str = ''
        self.HedgeFlag: str = ''
        self.Price: float = 0.0
        self.Volume: int = 0
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.TradeType: str = ''
        self.PriceSource: str = ''
        self.TraderID: str = ''
        self.OrderLocalID: str = ''
        self.ClearingPartID: str = ''
        self.BusinessUnit: str = ''
        self.SequenceNo: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.BrokerOrderSeq: int = 0
        self.TradeSource: str = ''
        self.InvestUnitID: str = ''


class UserSessionEntity(Entity):
    """用户会话"""

    def __init__(self):
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.LoginDate: str = ''
        self.LoginTime: str = ''
        self.IPAddress: str = ''
        self.UserProductInfo: str = ''
        self.InterfaceProductInfo: str = ''
        self.ProtocolInfo: str = ''
        self.MacAddress: str = ''
        self.LoginRemark: str = ''


class QueryMaxOrderVolumeEntity(Entity):
    """查询最大报单数量"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.Direction: str = ''
        self.OffsetFlag: str = ''
        self.HedgeFlag: str = ''
        self.MaxVolume: int = 0
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class SettlementInfoConfirmEntity(Entity):
    """投资者结算结果确认信息"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ConfirmDate: str = ''
        self.ConfirmTime: str = ''
        self.SettlementID: int = 0
        self.AccountID: str = ''
        self.CurrencyID: str = ''


class SyncDepositEntity(Entity):
    """出入金同步"""

    def __init__(self):
        self.DepositSeqNo: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.Deposit: float = 0.0
        self.IsForce: int = 0
        self.CurrencyID: str = ''


class SyncFundMortgageEntity(Entity):
    """货币质押同步"""

    def __init__(self):
        self.MortgageSeqNo: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.FromCurrencyID: str = ''
        self.MortgageAmount: float = 0.0
        self.ToCurrencyID: str = ''


class BrokerSyncEntity(Entity):
    """经纪公司同步"""

    def __init__(self):
        self.BrokerID: str = ''


class SyncingInvestorEntity(Entity):
    """正在同步中的投资者"""

    def __init__(self):
        self.InvestorID: str = ''
        self.BrokerID: str = ''
        self.InvestorGroupID: str = ''
        self.InvestorName: str = ''
        self.IdentifiedCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.IsActive: int = 0
        self.Telephone: str = ''
        self.Address: str = ''
        self.OpenDate: str = ''
        self.Mobile: str = ''
        self.CommModelID: str = ''
        self.MarginModelID: str = ''


class SyncingTradingCodeEntity(Entity):
    """正在同步中的交易代码"""

    def __init__(self):
        self.InvestorID: str = ''
        self.BrokerID: str = ''
        self.ExchangeID: str = ''
        self.ClientID: str = ''
        self.IsActive: int = 0
        self.ClientIDType: str = ''


class SyncingInvestorGroupEntity(Entity):
    """正在同步中的投资者分组"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorGroupID: str = ''
        self.InvestorGroupName: str = ''


class SyncingTradingAccountEntity(Entity):
    """正在同步中的交易账号"""

    def __init__(self):
        self.BrokerID: str = ''
        self.AccountID: str = ''
        self.PreMortgage: float = 0.0
        self.PreCredit: float = 0.0
        self.PreDeposit: float = 0.0
        self.PreBalance: float = 0.0
        self.PreMargin: float = 0.0
        self.InterestBase: float = 0.0
        self.Interest: float = 0.0
        self.Deposit: float = 0.0
        self.Withdraw: float = 0.0
        self.FrozenMargin: float = 0.0
        self.FrozenCash: float = 0.0
        self.FrozenCommission: float = 0.0
        self.CurrMargin: float = 0.0
        self.CashIn: float = 0.0
        self.Commission: float = 0.0
        self.CloseProfit: float = 0.0
        self.PositionProfit: float = 0.0
        self.Balance: float = 0.0
        self.Available: float = 0.0
        self.WithdrawQuota: float = 0.0
        self.Reserve: float = 0.0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.Credit: float = 0.0
        self.Mortgage: float = 0.0
        self.ExchangeMargin: float = 0.0
        self.DeliveryMargin: float = 0.0
        self.ExchangeDeliveryMargin: float = 0.0
        self.ReserveBalance: float = 0.0
        self.CurrencyID: str = ''
        self.PreFundMortgageIn: float = 0.0
        self.PreFundMortgageOut: float = 0.0
        self.FundMortgageIn: float = 0.0
        self.FundMortgageOut: float = 0.0
        self.FundMortgageAvailable: float = 0.0
        self.MortgageableFund: float = 0.0
        self.SpecProductMargin: float = 0.0
        self.SpecProductFrozenMargin: float = 0.0
        self.SpecProductCommission: float = 0.0
        self.SpecProductFrozenCommission: float = 0.0
        self.SpecProductPositionProfit: float = 0.0
        self.SpecProductCloseProfit: float = 0.0
        self.SpecProductPositionProfitByAlg: float = 0.0
        self.SpecProductExchangeMargin: float = 0.0
        self.FrozenSwap: float = 0.0
        self.RemainSwap: float = 0.0


class SyncingInvestorPositionEntity(Entity):
    """正在同步中的投资者持仓"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.PosiDirection: str = ''
        self.HedgeFlag: str = ''
        self.PositionDate: str = ''
        self.YdPosition: int = 0
        self.Position: int = 0
        self.LongFrozen: int = 0
        self.ShortFrozen: int = 0
        self.LongFrozenAmount: float = 0.0
        self.ShortFrozenAmount: float = 0.0
        self.OpenVolume: int = 0
        self.CloseVolume: int = 0
        self.OpenAmount: float = 0.0
        self.CloseAmount: float = 0.0
        self.PositionCost: float = 0.0
        self.PreMargin: float = 0.0
        self.UseMargin: float = 0.0
        self.FrozenMargin: float = 0.0
        self.FrozenCash: float = 0.0
        self.FrozenCommission: float = 0.0
        self.CashIn: float = 0.0
        self.Commission: float = 0.0
        self.CloseProfit: float = 0.0
        self.PositionProfit: float = 0.0
        self.PreSettlementPrice: float = 0.0
        self.SettlementPrice: float = 0.0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.OpenCost: float = 0.0
        self.ExchangeMargin: float = 0.0
        self.CombPosition: int = 0
        self.CombLongFrozen: int = 0
        self.CombShortFrozen: int = 0
        self.CloseProfitByDate: float = 0.0
        self.CloseProfitByTrade: float = 0.0
        self.TodayPosition: int = 0
        self.MarginRateByMoney: float = 0.0
        self.MarginRateByVolume: float = 0.0
        self.StrikeFrozen: int = 0
        self.StrikeFrozenAmount: float = 0.0
        self.AbandonFrozen: int = 0
        self.ExchangeID: str = ''
        self.YdStrikeFrozen: int = 0
        self.InvestUnitID: str = ''
        self.PositionCostOffset: float = 0.0


class SyncingInstrumentMarginRateEntity(Entity):
    """正在同步中的合约保证金率"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.HedgeFlag: str = ''
        self.LongMarginRatioByMoney: float = 0.0
        self.LongMarginRatioByVolume: float = 0.0
        self.ShortMarginRatioByMoney: float = 0.0
        self.ShortMarginRatioByVolume: float = 0.0
        self.IsRelative: int = 0


class SyncingInstrumentCommissionRateEntity(Entity):
    """正在同步中的合约手续费率"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OpenRatioByMoney: float = 0.0
        self.OpenRatioByVolume: float = 0.0
        self.CloseRatioByMoney: float = 0.0
        self.CloseRatioByVolume: float = 0.0
        self.CloseTodayRatioByMoney: float = 0.0
        self.CloseTodayRatioByVolume: float = 0.0


class SyncingInstrumentTradingRightEntity(Entity):
    """正在同步中的合约交易权限"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.TradingRight: str = ''


class QryOrderEntity(Entity):
    """查询报单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.OrderSysID: str = ''
        self.InsertTimeStart: str = ''
        self.InsertTimeEnd: str = ''
        self.InvestUnitID: str = ''


class QryTradeEntity(Entity):
    """查询成交"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.TradeID: str = ''
        self.TradeTimeStart: str = ''
        self.TradeTimeEnd: str = ''
        self.InvestUnitID: str = ''


class QryInvestorPositionEntity(Entity):
    """查询投资者持仓"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class QryTradingAccountEntity(Entity):
    """查询资金账户"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.CurrencyID: str = ''
        self.BizType: str = ''
        self.AccountID: str = ''


class QryInvestorEntity(Entity):
    """查询投资者"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''


class QryTradingCodeEntity(Entity):
    """查询交易编码"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExchangeID: str = ''
        self.ClientID: str = ''
        self.ClientIDType: str = ''
        self.InvestUnitID: str = ''


class QryInvestorGroupEntity(Entity):
    """查询投资者组"""

    def __init__(self):
        self.BrokerID: str = ''


class QryInstrumentMarginRateEntity(Entity):
    """查询合约保证金率"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.HedgeFlag: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class QryInstrumentCommissionRateEntity(Entity):
    """查询手续费率"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class QryInstrumentTradingRightEntity(Entity):
    """查询合约交易权限"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''


class QryBrokerEntity(Entity):
    """查询经纪公司"""

    def __init__(self):
        self.BrokerID: str = ''


class QryTraderEntity(Entity):
    """查询交易员"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.TraderID: str = ''


class QrySuperUserFunctionEntity(Entity):
    """查询管理用户功能权限"""

    def __init__(self):
        self.UserID: str = ''


class QryUserSessionEntity(Entity):
    """查询用户会话"""

    def __init__(self):
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.BrokerID: str = ''
        self.UserID: str = ''


class QryPartBrokerEntity(Entity):
    """查询经纪公司会员代码"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.BrokerID: str = ''
        self.ParticipantID: str = ''


class QryFrontStatusEntity(Entity):
    """查询前置状态"""

    def __init__(self):
        self.FrontID: int = 0


class QryExchangeOrderEntity(Entity):
    """查询交易所报单"""

    def __init__(self):
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.ExchangeID: str = ''
        self.TraderID: str = ''


class QryOrderActionEntity(Entity):
    """查询报单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExchangeID: str = ''


class QryExchangeOrderActionEntity(Entity):
    """查询交易所报单操作"""

    def __init__(self):
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeID: str = ''
        self.TraderID: str = ''


class QrySuperUserEntity(Entity):
    """查询管理用户"""

    def __init__(self):
        self.UserID: str = ''


class QryExchangeEntity(Entity):
    """查询交易所"""

    def __init__(self):
        self.ExchangeID: str = ''


class QryProductEntity(Entity):
    """查询产品"""

    def __init__(self):
        self.ProductID: str = ''
        self.ProductClass: str = ''
        self.ExchangeID: str = ''


class QryInstrumentEntity(Entity):
    """查询合约"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.ExchangeInstID: str = ''
        self.ProductID: str = ''


class QryDepthMarketDataEntity(Entity):
    """查询行情"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''


class QryBrokerUserEntity(Entity):
    """查询经纪公司用户"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''


class QryBrokerUserFunctionEntity(Entity):
    """查询经纪公司用户权限"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''


class QryTraderOfferEntity(Entity):
    """查询交易员报盘机"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.TraderID: str = ''


class QrySyncDepositEntity(Entity):
    """查询出入金流水"""

    def __init__(self):
        self.BrokerID: str = ''
        self.DepositSeqNo: str = ''


class QrySettlementInfoEntity(Entity):
    """查询投资者结算结果"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.TradingDay: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''


class QryExchangeMarginRateEntity(Entity):
    """查询交易所保证金率"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InstrumentID: str = ''
        self.HedgeFlag: str = ''
        self.ExchangeID: str = ''


class QryExchangeMarginRateAdjustEntity(Entity):
    """查询交易所调整保证金率"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InstrumentID: str = ''
        self.HedgeFlag: str = ''


class QryExchangeRateEntity(Entity):
    """查询汇率"""

    def __init__(self):
        self.BrokerID: str = ''
        self.FromCurrencyID: str = ''
        self.ToCurrencyID: str = ''


class QrySyncFundMortgageEntity(Entity):
    """查询货币质押流水"""

    def __init__(self):
        self.BrokerID: str = ''
        self.MortgageSeqNo: str = ''


class QryHisOrderEntity(Entity):
    """查询报单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.OrderSysID: str = ''
        self.InsertTimeStart: str = ''
        self.InsertTimeEnd: str = ''
        self.TradingDay: str = ''
        self.SettlementID: int = 0


class OptionInstrMiniMarginEntity(Entity):
    """当前期权合约最小保证金"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.MinMargin: float = 0.0
        self.ValueMethod: str = ''
        self.IsRelative: int = 0


class OptionInstrMarginAdjustEntity(Entity):
    """当前期权合约保证金调整系数"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.SShortMarginRatioByMoney: float = 0.0
        self.SShortMarginRatioByVolume: float = 0.0
        self.HShortMarginRatioByMoney: float = 0.0
        self.HShortMarginRatioByVolume: float = 0.0
        self.AShortMarginRatioByMoney: float = 0.0
        self.AShortMarginRatioByVolume: float = 0.0
        self.IsRelative: int = 0
        self.MShortMarginRatioByMoney: float = 0.0
        self.MShortMarginRatioByVolume: float = 0.0


class OptionInstrCommRateEntity(Entity):
    """当前期权合约手续费的详细内容"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OpenRatioByMoney: float = 0.0
        self.OpenRatioByVolume: float = 0.0
        self.CloseRatioByMoney: float = 0.0
        self.CloseRatioByVolume: float = 0.0
        self.CloseTodayRatioByMoney: float = 0.0
        self.CloseTodayRatioByVolume: float = 0.0
        self.StrikeRatioByMoney: float = 0.0
        self.StrikeRatioByVolume: float = 0.0
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class OptionInstrTradeCostEntity(Entity):
    """期权交易成本"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.HedgeFlag: str = ''
        self.FixedMargin: float = 0.0
        self.MiniMargin: float = 0.0
        self.Royalty: float = 0.0
        self.ExchFixedMargin: float = 0.0
        self.ExchMiniMargin: float = 0.0
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class QryOptionInstrTradeCostEntity(Entity):
    """期权交易成本查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.HedgeFlag: str = ''
        self.InputPrice: float = 0.0
        self.UnderlyingPrice: float = 0.0
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class QryOptionInstrCommRateEntity(Entity):
    """期权手续费率查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class IndexPriceEntity(Entity):
    """股指现货指数"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InstrumentID: str = ''
        self.ClosePrice: float = 0.0


class InputExecOrderEntity(Entity):
    """输入的执行宣告"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExecOrderRef: str = ''
        self.UserID: str = ''
        self.Volume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.OffsetFlag: str = ''
        self.HedgeFlag: str = ''
        self.ActionType: str = ''
        self.PosiDirection: str = ''
        self.ReservePositionFlag: str = ''
        self.CloseFlag: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.ClientID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class InputExecOrderActionEntity(Entity):
    """输入执行宣告操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExecOrderActionRef: int = 0
        self.ExecOrderRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.ExecOrderSysID: str = ''
        self.ActionFlag: str = ''
        self.UserID: str = ''
        self.InstrumentID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ExecOrderEntity(Entity):
    """执行宣告"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExecOrderRef: str = ''
        self.UserID: str = ''
        self.Volume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.OffsetFlag: str = ''
        self.HedgeFlag: str = ''
        self.ActionType: str = ''
        self.PosiDirection: str = ''
        self.ReservePositionFlag: str = ''
        self.CloseFlag: str = ''
        self.ExecOrderLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderSubmitStatus: str = ''
        self.NotifySequence: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.ExecOrderSysID: str = ''
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.CancelTime: str = ''
        self.ExecResult: str = ''
        self.ClearingPartID: str = ''
        self.SequenceNo: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.UserProductInfo: str = ''
        self.StatusMsg: str = ''
        self.ActiveUserID: str = ''
        self.BrokerExecOrderSeq: int = 0
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ExecOrderActionEntity(Entity):
    """执行宣告操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExecOrderActionRef: int = 0
        self.ExecOrderRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.ExecOrderSysID: str = ''
        self.ActionFlag: str = ''
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.ExecOrderLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.ActionType: str = ''
        self.StatusMsg: str = ''
        self.InstrumentID: str = ''
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryExecOrderEntity(Entity):
    """执行宣告查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.ExecOrderSysID: str = ''
        self.InsertTimeStart: str = ''
        self.InsertTimeEnd: str = ''


class ExchangeExecOrderEntity(Entity):
    """交易所执行宣告信息"""

    def __init__(self):
        self.Volume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.OffsetFlag: str = ''
        self.HedgeFlag: str = ''
        self.ActionType: str = ''
        self.PosiDirection: str = ''
        self.ReservePositionFlag: str = ''
        self.CloseFlag: str = ''
        self.ExecOrderLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderSubmitStatus: str = ''
        self.NotifySequence: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.ExecOrderSysID: str = ''
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.CancelTime: str = ''
        self.ExecResult: str = ''
        self.ClearingPartID: str = ''
        self.SequenceNo: int = 0
        self.BranchID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryExchangeExecOrderEntity(Entity):
    """交易所执行宣告查询"""

    def __init__(self):
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.ExchangeID: str = ''
        self.TraderID: str = ''


class QryExecOrderActionEntity(Entity):
    """执行宣告操作查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExchangeID: str = ''


class ExchangeExecOrderActionEntity(Entity):
    """交易所执行宣告操作"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.ExecOrderSysID: str = ''
        self.ActionFlag: str = ''
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.ExecOrderLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.ActionType: str = ''
        self.BranchID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''
        self.ExchangeInstID: str = ''
        self.Volume: int = 0


class QryExchangeExecOrderActionEntity(Entity):
    """交易所执行宣告操作查询"""

    def __init__(self):
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeID: str = ''
        self.TraderID: str = ''


class ErrExecOrderEntity(Entity):
    """错误执行宣告"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExecOrderRef: str = ''
        self.UserID: str = ''
        self.Volume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.OffsetFlag: str = ''
        self.HedgeFlag: str = ''
        self.ActionType: str = ''
        self.PosiDirection: str = ''
        self.ReservePositionFlag: str = ''
        self.CloseFlag: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.ClientID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class QryErrExecOrderEntity(Entity):
    """查询错误执行宣告"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''


class ErrExecOrderActionEntity(Entity):
    """错误执行宣告操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExecOrderActionRef: int = 0
        self.ExecOrderRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.ExecOrderSysID: str = ''
        self.ActionFlag: str = ''
        self.UserID: str = ''
        self.InstrumentID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class QryErrExecOrderActionEntity(Entity):
    """查询错误执行宣告操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''


class OptionInstrTradingRightEntity(Entity):
    """投资者期权合约交易权限"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.Direction: str = ''
        self.TradingRight: str = ''


class QryOptionInstrTradingRightEntity(Entity):
    """查询期权合约交易权限"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.Direction: str = ''


class InputForQuoteEntity(Entity):
    """输入的询价"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ForQuoteRef: str = ''
        self.UserID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ForQuoteEntity(Entity):
    """询价"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ForQuoteRef: str = ''
        self.UserID: str = ''
        self.ForQuoteLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.ForQuoteStatus: str = ''
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.StatusMsg: str = ''
        self.ActiveUserID: str = ''
        self.BrokerForQutoSeq: int = 0
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryForQuoteEntity(Entity):
    """询价查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InsertTimeStart: str = ''
        self.InsertTimeEnd: str = ''
        self.InvestUnitID: str = ''


class ExchangeForQuoteEntity(Entity):
    """交易所询价信息"""

    def __init__(self):
        self.ForQuoteLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.ForQuoteStatus: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryExchangeForQuoteEntity(Entity):
    """交易所询价查询"""

    def __init__(self):
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.ExchangeID: str = ''
        self.TraderID: str = ''


class InputQuoteEntity(Entity):
    """输入的报价"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.QuoteRef: str = ''
        self.UserID: str = ''
        self.AskPrice: float = 0.0
        self.BidPrice: float = 0.0
        self.AskVolume: int = 0
        self.BidVolume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.AskOffsetFlag: str = ''
        self.BidOffsetFlag: str = ''
        self.AskHedgeFlag: str = ''
        self.BidHedgeFlag: str = ''
        self.AskOrderRef: str = ''
        self.BidOrderRef: str = ''
        self.ForQuoteSysID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''
        self.ClientID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class InputQuoteActionEntity(Entity):
    """输入报价操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.QuoteActionRef: int = 0
        self.QuoteRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.QuoteSysID: str = ''
        self.ActionFlag: str = ''
        self.UserID: str = ''
        self.InstrumentID: str = ''
        self.InvestUnitID: str = ''
        self.ClientID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QuoteEntity(Entity):
    """报价"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.QuoteRef: str = ''
        self.UserID: str = ''
        self.AskPrice: float = 0.0
        self.BidPrice: float = 0.0
        self.AskVolume: int = 0
        self.BidVolume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.AskOffsetFlag: str = ''
        self.BidOffsetFlag: str = ''
        self.AskHedgeFlag: str = ''
        self.BidHedgeFlag: str = ''
        self.QuoteLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.NotifySequence: int = 0
        self.OrderSubmitStatus: str = ''
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.QuoteSysID: str = ''
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.CancelTime: str = ''
        self.QuoteStatus: str = ''
        self.ClearingPartID: str = ''
        self.SequenceNo: int = 0
        self.AskOrderSysID: str = ''
        self.BidOrderSysID: str = ''
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.UserProductInfo: str = ''
        self.StatusMsg: str = ''
        self.ActiveUserID: str = ''
        self.BrokerQuoteSeq: int = 0
        self.AskOrderRef: str = ''
        self.BidOrderRef: str = ''
        self.ForQuoteSysID: str = ''
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QuoteActionEntity(Entity):
    """报价操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.QuoteActionRef: int = 0
        self.QuoteRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.QuoteSysID: str = ''
        self.ActionFlag: str = ''
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.QuoteLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.StatusMsg: str = ''
        self.InstrumentID: str = ''
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryQuoteEntity(Entity):
    """报价查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.QuoteSysID: str = ''
        self.InsertTimeStart: str = ''
        self.InsertTimeEnd: str = ''
        self.InvestUnitID: str = ''


class ExchangeQuoteEntity(Entity):
    """交易所报价信息"""

    def __init__(self):
        self.AskPrice: float = 0.0
        self.BidPrice: float = 0.0
        self.AskVolume: int = 0
        self.BidVolume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.AskOffsetFlag: str = ''
        self.BidOffsetFlag: str = ''
        self.AskHedgeFlag: str = ''
        self.BidHedgeFlag: str = ''
        self.QuoteLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.NotifySequence: int = 0
        self.OrderSubmitStatus: str = ''
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.QuoteSysID: str = ''
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.CancelTime: str = ''
        self.QuoteStatus: str = ''
        self.ClearingPartID: str = ''
        self.SequenceNo: int = 0
        self.AskOrderSysID: str = ''
        self.BidOrderSysID: str = ''
        self.ForQuoteSysID: str = ''
        self.BranchID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryExchangeQuoteEntity(Entity):
    """交易所报价查询"""

    def __init__(self):
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.ExchangeID: str = ''
        self.TraderID: str = ''


class QryQuoteActionEntity(Entity):
    """报价操作查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExchangeID: str = ''


class ExchangeQuoteActionEntity(Entity):
    """交易所报价操作"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.QuoteSysID: str = ''
        self.ActionFlag: str = ''
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.QuoteLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryExchangeQuoteActionEntity(Entity):
    """交易所报价操作查询"""

    def __init__(self):
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeID: str = ''
        self.TraderID: str = ''


class OptionInstrDeltaEntity(Entity):
    """期权合约delta值"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.Delta: float = 0.0


class ForQuoteRspEntity(Entity):
    """发给做市商的询价请求"""

    def __init__(self):
        self.TradingDay: str = ''
        self.InstrumentID: str = ''
        self.ForQuoteSysID: str = ''
        self.ForQuoteTime: str = ''
        self.ActionDay: str = ''
        self.ExchangeID: str = ''


class StrikeOffsetEntity(Entity):
    """当前期权合约执行偏移值的详细内容"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.Offset: float = 0.0
        self.OffsetType: str = ''


class QryStrikeOffsetEntity(Entity):
    """期权执行偏移值查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''


class InputBatchOrderActionEntity(Entity):
    """输入批量报单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OrderActionRef: int = 0
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.UserID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class BatchOrderActionEntity(Entity):
    """批量报单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OrderActionRef: int = 0
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.StatusMsg: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ExchangeBatchOrderActionEntity(Entity):
    """交易所批量报单操作"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryBatchOrderActionEntity(Entity):
    """查询批量报单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExchangeID: str = ''


class CombInstrumentGuardEntity(Entity):
    """组合合约安全系数"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InstrumentID: str = ''
        self.GuarantRatio: float = 0.0
        self.ExchangeID: str = ''


class QryCombInstrumentGuardEntity(Entity):
    """组合合约安全系数查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''


class InputCombActionEntity(Entity):
    """输入的申请组合"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.CombActionRef: str = ''
        self.UserID: str = ''
        self.Direction: str = ''
        self.Volume: int = 0
        self.CombDirection: str = ''
        self.HedgeFlag: str = ''
        self.ExchangeID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''
        self.InvestUnitID: str = ''


class CombActionEntity(Entity):
    """申请组合"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.CombActionRef: str = ''
        self.UserID: str = ''
        self.Direction: str = ''
        self.Volume: int = 0
        self.CombDirection: str = ''
        self.HedgeFlag: str = ''
        self.ActionLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.ActionStatus: str = ''
        self.NotifySequence: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.SequenceNo: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.UserProductInfo: str = ''
        self.StatusMsg: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''
        self.ComTradeID: str = ''
        self.BranchID: str = ''
        self.InvestUnitID: str = ''


class QryCombActionEntity(Entity):
    """申请组合查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class ExchangeCombActionEntity(Entity):
    """交易所申请组合信息"""

    def __init__(self):
        self.Direction: str = ''
        self.Volume: int = 0
        self.CombDirection: str = ''
        self.HedgeFlag: str = ''
        self.ActionLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.ActionStatus: str = ''
        self.NotifySequence: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.SequenceNo: int = 0
        self.IPAddress: str = ''
        self.MacAddress: str = ''
        self.ComTradeID: str = ''
        self.BranchID: str = ''


class QryExchangeCombActionEntity(Entity):
    """交易所申请组合查询"""

    def __init__(self):
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.ExchangeID: str = ''
        self.TraderID: str = ''


class ProductExchRateEntity(Entity):
    """产品报价汇率"""

    def __init__(self):
        self.ProductID: str = ''
        self.QuoteCurrencyID: str = ''
        self.ExchangeRate: float = 0.0
        self.ExchangeID: str = ''


class QryProductExchRateEntity(Entity):
    """产品报价汇率查询"""

    def __init__(self):
        self.ProductID: str = ''
        self.ExchangeID: str = ''


class QryForQuoteParamEntity(Entity):
    """查询询价价差参数"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''


class ForQuoteParamEntity(Entity):
    """询价价差参数"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.LastPrice: float = 0.0
        self.PriceInterval: float = 0.0


class MMOptionInstrCommRateEntity(Entity):
    """当前做市商期权合约手续费的详细内容"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OpenRatioByMoney: float = 0.0
        self.OpenRatioByVolume: float = 0.0
        self.CloseRatioByMoney: float = 0.0
        self.CloseRatioByVolume: float = 0.0
        self.CloseTodayRatioByMoney: float = 0.0
        self.CloseTodayRatioByVolume: float = 0.0
        self.StrikeRatioByMoney: float = 0.0
        self.StrikeRatioByVolume: float = 0.0


class QryMMOptionInstrCommRateEntity(Entity):
    """做市商期权手续费率查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''


class MMInstrumentCommissionRateEntity(Entity):
    """做市商合约手续费率"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OpenRatioByMoney: float = 0.0
        self.OpenRatioByVolume: float = 0.0
        self.CloseRatioByMoney: float = 0.0
        self.CloseRatioByVolume: float = 0.0
        self.CloseTodayRatioByMoney: float = 0.0
        self.CloseTodayRatioByVolume: float = 0.0


class QryMMInstrumentCommissionRateEntity(Entity):
    """查询做市商合约手续费率"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''


class InstrumentOrderCommRateEntity(Entity):
    """当前报单手续费的详细内容"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.HedgeFlag: str = ''
        self.OrderCommByVolume: float = 0.0
        self.OrderActionCommByVolume: float = 0.0
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class QryInstrumentOrderCommRateEntity(Entity):
    """报单手续费率查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''


class TradeParamEntity(Entity):
    """交易参数"""

    def __init__(self):
        self.BrokerID: str = ''
        self.TradeParamID: str = ''
        self.TradeParamValue: str = ''
        self.Memo: str = ''


class InstrumentMarginRateULEntity(Entity):
    """合约保证金率调整"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.HedgeFlag: str = ''
        self.LongMarginRatioByMoney: float = 0.0
        self.LongMarginRatioByVolume: float = 0.0
        self.ShortMarginRatioByMoney: float = 0.0
        self.ShortMarginRatioByVolume: float = 0.0


class FutureLimitPosiParamEntity(Entity):
    """期货持仓限制参数"""

    def __init__(self):
        self.InvestorRange: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ProductID: str = ''
        self.SpecOpenVolume: int = 0
        self.ArbiOpenVolume: int = 0
        self.OpenVolume: int = 0


class LoginForbiddenIPEntity(Entity):
    """禁止登录IP"""

    def __init__(self):
        self.IPAddress: str = ''


class IPListEntity(Entity):
    """IP列表"""

    def __init__(self):
        self.IPAddress: str = ''
        self.IsWhite: int = 0


class InputOptionSelfCloseEntity(Entity):
    """输入的期权自对冲"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.OptionSelfCloseRef: str = ''
        self.UserID: str = ''
        self.Volume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.HedgeFlag: str = ''
        self.OptSelfCloseFlag: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.ClientID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class InputOptionSelfCloseActionEntity(Entity):
    """输入期权自对冲操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OptionSelfCloseActionRef: int = 0
        self.OptionSelfCloseRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.OptionSelfCloseSysID: str = ''
        self.ActionFlag: str = ''
        self.UserID: str = ''
        self.InstrumentID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class OptionSelfCloseEntity(Entity):
    """期权自对冲"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.OptionSelfCloseRef: str = ''
        self.UserID: str = ''
        self.Volume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.HedgeFlag: str = ''
        self.OptSelfCloseFlag: str = ''
        self.OptionSelfCloseLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderSubmitStatus: str = ''
        self.NotifySequence: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.OptionSelfCloseSysID: str = ''
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.CancelTime: str = ''
        self.ExecResult: str = ''
        self.ClearingPartID: str = ''
        self.SequenceNo: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.UserProductInfo: str = ''
        self.StatusMsg: str = ''
        self.ActiveUserID: str = ''
        self.BrokerOptionSelfCloseSeq: int = 0
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class OptionSelfCloseActionEntity(Entity):
    """期权自对冲操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OptionSelfCloseActionRef: int = 0
        self.OptionSelfCloseRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.OptionSelfCloseSysID: str = ''
        self.ActionFlag: str = ''
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OptionSelfCloseLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.StatusMsg: str = ''
        self.InstrumentID: str = ''
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryOptionSelfCloseEntity(Entity):
    """期权自对冲查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.OptionSelfCloseSysID: str = ''
        self.InsertTimeStart: str = ''
        self.InsertTimeEnd: str = ''


class ExchangeOptionSelfCloseEntity(Entity):
    """交易所期权自对冲信息"""

    def __init__(self):
        self.Volume: int = 0
        self.RequestID: int = 0
        self.BusinessUnit: str = ''
        self.HedgeFlag: str = ''
        self.OptSelfCloseFlag: str = ''
        self.OptionSelfCloseLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderSubmitStatus: str = ''
        self.NotifySequence: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.OptionSelfCloseSysID: str = ''
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.CancelTime: str = ''
        self.ExecResult: str = ''
        self.ClearingPartID: str = ''
        self.SequenceNo: int = 0
        self.BranchID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryOptionSelfCloseActionEntity(Entity):
    """期权自对冲操作查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExchangeID: str = ''


class ExchangeOptionSelfCloseActionEntity(Entity):
    """交易所期权自对冲操作"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.OptionSelfCloseSysID: str = ''
        self.ActionFlag: str = ''
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OptionSelfCloseLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.BranchID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''
        self.ExchangeInstID: str = ''
        self.OptSelfCloseFlag: str = ''


class SyncDelaySwapEntity(Entity):
    """延时换汇同步"""

    def __init__(self):
        self.DelaySwapSeqNo: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.FromCurrencyID: str = ''
        self.FromAmount: float = 0.0
        self.FromFrozenSwap: float = 0.0
        self.FromRemainSwap: float = 0.0
        self.ToCurrencyID: str = ''
        self.ToAmount: float = 0.0


class QrySyncDelaySwapEntity(Entity):
    """查询延时换汇同步"""

    def __init__(self):
        self.BrokerID: str = ''
        self.DelaySwapSeqNo: str = ''


class InvestUnitEntity(Entity):
    """投资单元"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InvestUnitID: str = ''
        self.InvestorUnitName: str = ''
        self.InvestorGroupID: str = ''
        self.CommModelID: str = ''
        self.MarginModelID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''


class QryInvestUnitEntity(Entity):
    """查询投资单元"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InvestUnitID: str = ''


class SecAgentCheckModeEntity(Entity):
    """二级代理商资金校验模式"""

    def __init__(self):
        self.InvestorID: str = ''
        self.BrokerID: str = ''
        self.CurrencyID: str = ''
        self.BrokerSecAgentID: str = ''
        self.CheckSelfAccount: int = 0


class SecAgentTradeInfoEntity(Entity):
    """二级代理商信息"""

    def __init__(self):
        self.BrokerID: str = ''
        self.BrokerSecAgentID: str = ''
        self.InvestorID: str = ''
        self.LongCustomerName: str = ''


class MarketDataEntity(Entity):
    """市场行情"""

    def __init__(self):
        self.TradingDay: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.ExchangeInstID: str = ''
        self.LastPrice: float = 0.0
        self.PreSettlementPrice: float = 0.0
        self.PreClosePrice: float = 0.0
        self.PreOpenInterest: float = 0.0
        self.OpenPrice: float = 0.0
        self.HighestPrice: float = 0.0
        self.LowestPrice: float = 0.0
        self.Volume: int = 0
        self.Turnover: float = 0.0
        self.OpenInterest: float = 0.0
        self.ClosePrice: float = 0.0
        self.SettlementPrice: float = 0.0
        self.UpperLimitPrice: float = 0.0
        self.LowerLimitPrice: float = 0.0
        self.PreDelta: float = 0.0
        self.CurrDelta: float = 0.0
        self.UpdateTime: str = ''
        self.UpdateMillisec: int = 0
        self.ActionDay: str = ''


class MarketDataBaseEntity(Entity):
    """行情基础属性"""

    def __init__(self):
        self.TradingDay: str = ''
        self.PreSettlementPrice: float = 0.0
        self.PreClosePrice: float = 0.0
        self.PreOpenInterest: float = 0.0
        self.PreDelta: float = 0.0


class MarketDataStaticEntity(Entity):
    """行情静态属性"""

    def __init__(self):
        self.OpenPrice: float = 0.0
        self.HighestPrice: float = 0.0
        self.LowestPrice: float = 0.0
        self.ClosePrice: float = 0.0
        self.UpperLimitPrice: float = 0.0
        self.LowerLimitPrice: float = 0.0
        self.SettlementPrice: float = 0.0
        self.CurrDelta: float = 0.0


class MarketDataLastMatchEntity(Entity):
    """行情最新成交属性"""

    def __init__(self):
        self.LastPrice: float = 0.0
        self.Volume: int = 0
        self.Turnover: float = 0.0
        self.OpenInterest: float = 0.0


class MarketDataBestPriceEntity(Entity):
    """行情最优价属性"""

    def __init__(self):
        self.BidPrice1: float = 0.0
        self.BidVolume1: int = 0
        self.AskPrice1: float = 0.0
        self.AskVolume1: int = 0


class MarketDataBid23Entity(Entity):
    """行情申买二、三属性"""

    def __init__(self):
        self.BidPrice2: float = 0.0
        self.BidVolume2: int = 0
        self.BidPrice3: float = 0.0
        self.BidVolume3: int = 0


class MarketDataAsk23Entity(Entity):
    """行情申卖二、三属性"""

    def __init__(self):
        self.AskPrice2: float = 0.0
        self.AskVolume2: int = 0
        self.AskPrice3: float = 0.0
        self.AskVolume3: int = 0


class MarketDataBid45Entity(Entity):
    """行情申买四、五属性"""

    def __init__(self):
        self.BidPrice4: float = 0.0
        self.BidVolume4: int = 0
        self.BidPrice5: float = 0.0
        self.BidVolume5: int = 0


class MarketDataAsk45Entity(Entity):
    """行情申卖四、五属性"""

    def __init__(self):
        self.AskPrice4: float = 0.0
        self.AskVolume4: int = 0
        self.AskPrice5: float = 0.0
        self.AskVolume5: int = 0


class MarketDataUpdateTimeEntity(Entity):
    """行情更新时间属性"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.UpdateTime: str = ''
        self.UpdateMillisec: int = 0
        self.ActionDay: str = ''


class MarketDataExchangeEntity(Entity):
    """行情交易所代码属性"""

    def __init__(self):
        self.ExchangeID: str = ''


class SpecificInstrumentEntity(Entity):
    """指定的合约"""

    def __init__(self):
        self.InstrumentID: str = ''


class InstrumentStatusEntity(Entity):
    """合约状态"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.ExchangeInstID: str = ''
        self.SettlementGroupID: str = ''
        self.InstrumentID: str = ''
        self.InstrumentStatus: str = ''
        self.TradingSegmentSN: int = 0
        self.EnterTime: str = ''
        self.EnterReason: str = ''


class QryInstrumentStatusEntity(Entity):
    """查询合约状态"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.ExchangeInstID: str = ''


class InvestorAccountEntity(Entity):
    """投资者账户"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''


class PositionProfitAlgorithmEntity(Entity):
    """浮动盈亏算法"""

    def __init__(self):
        self.BrokerID: str = ''
        self.AccountID: str = ''
        self.Algorithm: str = ''
        self.Memo: str = ''
        self.CurrencyID: str = ''


class DiscountEntity(Entity):
    """会员资金折扣"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorRange: str = ''
        self.InvestorID: str = ''
        self.Discount: float = 0.0


class QryTransferBankEntity(Entity):
    """查询转帐银行"""

    def __init__(self):
        self.BankID: str = ''
        self.BankBrchID: str = ''


class TransferBankEntity(Entity):
    """转帐银行"""

    def __init__(self):
        self.BankID: str = ''
        self.BankBrchID: str = ''
        self.BankName: str = ''
        self.IsActive: int = 0


class QryInvestorPositionDetailEntity(Entity):
    """查询投资者持仓明细"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class InvestorPositionDetailEntity(Entity):
    """投资者持仓明细"""

    def __init__(self):
        self.InstrumentID: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.HedgeFlag: str = ''
        self.Direction: str = ''
        self.OpenDate: str = ''
        self.TradeID: str = ''
        self.Volume: int = 0
        self.OpenPrice: float = 0.0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.TradeType: str = ''
        self.CombInstrumentID: str = ''
        self.ExchangeID: str = ''
        self.CloseProfitByDate: float = 0.0
        self.CloseProfitByTrade: float = 0.0
        self.PositionProfitByDate: float = 0.0
        self.PositionProfitByTrade: float = 0.0
        self.Margin: float = 0.0
        self.ExchMargin: float = 0.0
        self.MarginRateByMoney: float = 0.0
        self.MarginRateByVolume: float = 0.0
        self.LastSettlementPrice: float = 0.0
        self.SettlementPrice: float = 0.0
        self.CloseVolume: int = 0
        self.CloseAmount: float = 0.0
        self.TimeFirstVolume: int = 0
        self.InvestUnitID: str = ''


class TradingAccountPasswordEntity(Entity):
    """资金账户口令域"""

    def __init__(self):
        self.BrokerID: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.CurrencyID: str = ''


class MDTraderOfferEntity(Entity):
    """交易所行情报盘机"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.TraderID: str = ''
        self.ParticipantID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.OrderLocalID: str = ''
        self.TraderConnectStatus: str = ''
        self.ConnectRequestDate: str = ''
        self.ConnectRequestTime: str = ''
        self.LastReportDate: str = ''
        self.LastReportTime: str = ''
        self.ConnectDate: str = ''
        self.ConnectTime: str = ''
        self.StartDate: str = ''
        self.StartTime: str = ''
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.MaxTradeID: str = ''
        self.MaxOrderMessageReference: str = ''


class QryMDTraderOfferEntity(Entity):
    """查询行情报盘机"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.TraderID: str = ''


class QryNoticeEntity(Entity):
    """查询客户通知"""

    def __init__(self):
        self.BrokerID: str = ''


class NoticeEntity(Entity):
    """客户通知"""

    def __init__(self):
        self.BrokerID: str = ''
        self.Content: str = ''
        self.SequenceLabel: str = ''


class UserRightEntity(Entity):
    """用户权限"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.UserRightType: str = ''
        self.IsForbidden: int = 0


class QrySettlementInfoConfirmEntity(Entity):
    """查询结算信息确认域"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''


class LoadSettlementInfoEntity(Entity):
    """装载结算信息"""

    def __init__(self):
        self.BrokerID: str = ''


class BrokerWithdrawAlgorithmEntity(Entity):
    """经纪公司可提资金算法表"""

    def __init__(self):
        self.BrokerID: str = ''
        self.WithdrawAlgorithm: str = ''
        self.UsingRatio: float = 0.0
        self.IncludeCloseProfit: str = ''
        self.AllWithoutTrade: str = ''
        self.AvailIncludeCloseProfit: str = ''
        self.IsBrokerUserEvent: int = 0
        self.CurrencyID: str = ''
        self.FundMortgageRatio: float = 0.0
        self.BalanceAlgorithm: str = ''


class TradingAccountPasswordUpdateV1Entity(Entity):
    """资金账户口令变更域"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OldPassword: str = ''
        self.NewPassword: str = ''


class TradingAccountPasswordUpdateEntity(Entity):
    """资金账户口令变更域"""

    def __init__(self):
        self.BrokerID: str = ''
        self.AccountID: str = ''
        self.OldPassword: str = ''
        self.NewPassword: str = ''
        self.CurrencyID: str = ''


class QryCombinationLegEntity(Entity):
    """查询组合合约分腿"""

    def __init__(self):
        self.CombInstrumentID: str = ''
        self.LegID: int = 0
        self.LegInstrumentID: str = ''


class QrySyncStatusEntity(Entity):
    """查询组合合约分腿"""

    def __init__(self):
        self.TradingDay: str = ''


class CombinationLegEntity(Entity):
    """组合交易合约的单腿"""

    def __init__(self):
        self.CombInstrumentID: str = ''
        self.LegID: int = 0
        self.LegInstrumentID: str = ''
        self.Direction: str = ''
        self.LegMultiple: int = 0
        self.ImplyLevel: int = 0


class SyncStatusEntity(Entity):
    """数据同步状态"""

    def __init__(self):
        self.TradingDay: str = ''
        self.DataSyncStatus: str = ''


class QryLinkManEntity(Entity):
    """查询联系人"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''


class LinkManEntity(Entity):
    """联系人"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.PersonType: str = ''
        self.IdentifiedCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.PersonName: str = ''
        self.Telephone: str = ''
        self.Address: str = ''
        self.ZipCode: str = ''
        self.Priority: int = 0
        self.UOAZipCode: str = ''
        self.PersonFullName: str = ''


class QryBrokerUserEventEntity(Entity):
    """查询经纪公司用户事件"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.UserEventType: str = ''


class BrokerUserEventEntity(Entity):
    """查询经纪公司用户事件"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.UserEventType: str = ''
        self.EventSequenceNo: int = 0
        self.EventDate: str = ''
        self.EventTime: str = ''
        self.UserEventInfo: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''


class QryContractBankEntity(Entity):
    """查询签约银行请求"""

    def __init__(self):
        self.BrokerID: str = ''
        self.BankID: str = ''
        self.BankBrchID: str = ''


class ContractBankEntity(Entity):
    """查询签约银行响应"""

    def __init__(self):
        self.BrokerID: str = ''
        self.BankID: str = ''
        self.BankBrchID: str = ''
        self.BankName: str = ''


class InvestorPositionCombineDetailEntity(Entity):
    """投资者组合持仓明细"""

    def __init__(self):
        self.TradingDay: str = ''
        self.OpenDate: str = ''
        self.ExchangeID: str = ''
        self.SettlementID: int = 0
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ComTradeID: str = ''
        self.TradeID: str = ''
        self.InstrumentID: str = ''
        self.HedgeFlag: str = ''
        self.Direction: str = ''
        self.TotalAmt: int = 0
        self.Margin: float = 0.0
        self.ExchMargin: float = 0.0
        self.MarginRateByMoney: float = 0.0
        self.MarginRateByVolume: float = 0.0
        self.LegID: int = 0
        self.LegMultiple: int = 0
        self.CombInstrumentID: str = ''
        self.TradeGroupID: int = 0
        self.InvestUnitID: str = ''


class ParkedOrderEntity(Entity):
    """预埋单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.OrderRef: str = ''
        self.UserID: str = ''
        self.OrderPriceType: str = ''
        self.Direction: str = ''
        self.CombOffsetFlag: str = ''
        self.CombHedgeFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeTotalOriginal: int = 0
        self.TimeCondition: str = ''
        self.GTDDate: str = ''
        self.VolumeCondition: str = ''
        self.MinVolume: int = 0
        self.ContingentCondition: str = ''
        self.StopPrice: float = 0.0
        self.ForceCloseReason: str = ''
        self.IsAutoSuspend: int = 0
        self.BusinessUnit: str = ''
        self.RequestID: int = 0
        self.UserForceClose: int = 0
        self.ExchangeID: str = ''
        self.ParkedOrderID: str = ''
        self.UserType: str = ''
        self.Status: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.IsSwapOrder: int = 0
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.ClientID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ParkedOrderActionEntity(Entity):
    """输入预埋单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OrderActionRef: int = 0
        self.OrderRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.OrderSysID: str = ''
        self.ActionFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeChange: int = 0
        self.UserID: str = ''
        self.InstrumentID: str = ''
        self.ParkedOrderActionID: str = ''
        self.UserType: str = ''
        self.Status: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryParkedOrderEntity(Entity):
    """查询预埋单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class QryParkedOrderActionEntity(Entity):
    """查询预埋撤单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class RemoveParkedOrderEntity(Entity):
    """删除预埋单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ParkedOrderID: str = ''
        self.InvestUnitID: str = ''


class RemoveParkedOrderActionEntity(Entity):
    """删除预埋撤单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ParkedOrderActionID: str = ''
        self.InvestUnitID: str = ''


class InvestorWithdrawAlgorithmEntity(Entity):
    """经纪公司可提资金算法表"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorRange: str = ''
        self.InvestorID: str = ''
        self.UsingRatio: float = 0.0
        self.CurrencyID: str = ''
        self.FundMortgageRatio: float = 0.0


class QryInvestorPositionCombineDetailEntity(Entity):
    """查询组合持仓明细"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.CombInstrumentID: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class MarketDataAveragePriceEntity(Entity):
    """成交均价"""

    def __init__(self):
        self.AveragePrice: float = 0.0


class VerifyInvestorPasswordEntity(Entity):
    """校验投资者密码"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.Password: str = ''


class UserIPEntity(Entity):
    """用户IP"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.IPAddress: str = ''
        self.IPMask: str = ''
        self.MacAddress: str = ''


class TradingNoticeInfoEntity(Entity):
    """用户事件通知信息"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.SendTime: str = ''
        self.FieldContent: str = ''
        self.SequenceSeries: float = 0.0
        self.SequenceNo: int = 0
        self.InvestUnitID: str = ''


class TradingNoticeEntity(Entity):
    """用户事件通知"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorRange: str = ''
        self.InvestorID: str = ''
        self.SequenceSeries: float = 0.0
        self.UserID: str = ''
        self.SendTime: str = ''
        self.SequenceNo: int = 0
        self.FieldContent: str = ''
        self.InvestUnitID: str = ''


class QryTradingNoticeEntity(Entity):
    """查询交易事件通知"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InvestUnitID: str = ''


class QryErrOrderEntity(Entity):
    """查询错误报单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''


class ErrOrderEntity(Entity):
    """错误报单"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.OrderRef: str = ''
        self.UserID: str = ''
        self.OrderPriceType: str = ''
        self.Direction: str = ''
        self.CombOffsetFlag: str = ''
        self.CombHedgeFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeTotalOriginal: int = 0
        self.TimeCondition: str = ''
        self.GTDDate: str = ''
        self.VolumeCondition: str = ''
        self.MinVolume: int = 0
        self.ContingentCondition: str = ''
        self.StopPrice: float = 0.0
        self.ForceCloseReason: str = ''
        self.IsAutoSuspend: int = 0
        self.BusinessUnit: str = ''
        self.RequestID: int = 0
        self.UserForceClose: int = 0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.IsSwapOrder: int = 0
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.ClientID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class ErrorConditionalOrderEntity(Entity):
    """查询错误报单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.OrderRef: str = ''
        self.UserID: str = ''
        self.OrderPriceType: str = ''
        self.Direction: str = ''
        self.CombOffsetFlag: str = ''
        self.CombHedgeFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeTotalOriginal: int = 0
        self.TimeCondition: str = ''
        self.GTDDate: str = ''
        self.VolumeCondition: str = ''
        self.MinVolume: int = 0
        self.ContingentCondition: str = ''
        self.StopPrice: float = 0.0
        self.ForceCloseReason: str = ''
        self.IsAutoSuspend: int = 0
        self.BusinessUnit: str = ''
        self.RequestID: int = 0
        self.OrderLocalID: str = ''
        self.ExchangeID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.ExchangeInstID: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderSubmitStatus: str = ''
        self.NotifySequence: int = 0
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.OrderSysID: str = ''
        self.OrderSource: str = ''
        self.OrderStatus: str = ''
        self.OrderType: str = ''
        self.VolumeTraded: int = 0
        self.VolumeTotal: int = 0
        self.InsertDate: str = ''
        self.InsertTime: str = ''
        self.ActiveTime: str = ''
        self.SuspendTime: str = ''
        self.UpdateTime: str = ''
        self.CancelTime: str = ''
        self.ActiveTraderID: str = ''
        self.ClearingPartID: str = ''
        self.SequenceNo: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.UserProductInfo: str = ''
        self.StatusMsg: str = ''
        self.UserForceClose: int = 0
        self.ActiveUserID: str = ''
        self.BrokerOrderSeq: int = 0
        self.RelativeOrderSysID: str = ''
        self.ZCETotalTradedVolume: int = 0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.IsSwapOrder: int = 0
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''


class QryErrOrderActionEntity(Entity):
    """查询错误报单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''


class ErrOrderActionEntity(Entity):
    """错误报单操作"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.OrderActionRef: int = 0
        self.OrderRef: str = ''
        self.RequestID: int = 0
        self.FrontID: int = 0
        self.SessionID: int = 0
        self.ExchangeID: str = ''
        self.OrderSysID: str = ''
        self.ActionFlag: str = ''
        self.LimitPrice: float = 0.0
        self.VolumeChange: int = 0
        self.ActionDate: str = ''
        self.ActionTime: str = ''
        self.TraderID: str = ''
        self.InstallID: int = 0
        self.OrderLocalID: str = ''
        self.ActionLocalID: str = ''
        self.ParticipantID: str = ''
        self.ClientID: str = ''
        self.BusinessUnit: str = ''
        self.OrderActionStatus: str = ''
        self.UserID: str = ''
        self.StatusMsg: str = ''
        self.InstrumentID: str = ''
        self.BranchID: str = ''
        self.InvestUnitID: str = ''
        self.IPAddress: str = ''
        self.MacAddress: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class QryExchangeSequenceEntity(Entity):
    """查询交易所状态"""

    def __init__(self):
        self.ExchangeID: str = ''


class ExchangeSequenceEntity(Entity):
    """交易所状态"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.SequenceNo: int = 0
        self.MarketStatus: str = ''


class QueryMaxOrderVolumeWithPriceEntity(Entity):
    """根据价格查询最大报单数量"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InstrumentID: str = ''
        self.Direction: str = ''
        self.OffsetFlag: str = ''
        self.HedgeFlag: str = ''
        self.MaxVolume: int = 0
        self.Price: float = 0.0
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class QryBrokerTradingParamsEntity(Entity):
    """查询经纪公司交易参数"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.CurrencyID: str = ''
        self.AccountID: str = ''


class BrokerTradingParamsEntity(Entity):
    """经纪公司交易参数"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.MarginPriceType: str = ''
        self.Algorithm: str = ''
        self.AvailIncludeCloseProfit: str = ''
        self.CurrencyID: str = ''
        self.OptionRoyaltyPriceType: str = ''
        self.AccountID: str = ''


class QryBrokerTradingAlgosEntity(Entity):
    """查询经纪公司交易算法"""

    def __init__(self):
        self.BrokerID: str = ''
        self.ExchangeID: str = ''
        self.InstrumentID: str = ''


class BrokerTradingAlgosEntity(Entity):
    """经纪公司交易算法"""

    def __init__(self):
        self.BrokerID: str = ''
        self.ExchangeID: str = ''
        self.InstrumentID: str = ''
        self.HandlePositionAlgoID: str = ''
        self.FindMarginRateAlgoID: str = ''
        self.HandleTradingAccountAlgoID: str = ''


class QueryBrokerDepositEntity(Entity):
    """查询经纪公司资金"""

    def __init__(self):
        self.BrokerID: str = ''
        self.ExchangeID: str = ''


class BrokerDepositEntity(Entity):
    """经纪公司资金"""

    def __init__(self):
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.ParticipantID: str = ''
        self.ExchangeID: str = ''
        self.PreBalance: float = 0.0
        self.CurrMargin: float = 0.0
        self.CloseProfit: float = 0.0
        self.Balance: float = 0.0
        self.Deposit: float = 0.0
        self.Withdraw: float = 0.0
        self.Available: float = 0.0
        self.Reserve: float = 0.0
        self.FrozenMargin: float = 0.0


class QryCFMMCBrokerKeyEntity(Entity):
    """查询保证金监管系统经纪公司密钥"""

    def __init__(self):
        self.BrokerID: str = ''


class CFMMCBrokerKeyEntity(Entity):
    """保证金监管系统经纪公司密钥"""

    def __init__(self):
        self.BrokerID: str = ''
        self.ParticipantID: str = ''
        self.CreateDate: str = ''
        self.CreateTime: str = ''
        self.KeyID: int = 0
        self.CurrentKey: str = ''
        self.KeyKind: str = ''


class CFMMCTradingAccountKeyEntity(Entity):
    """保证金监管系统经纪公司资金账户密钥"""

    def __init__(self):
        self.BrokerID: str = ''
        self.ParticipantID: str = ''
        self.AccountID: str = ''
        self.KeyID: int = 0
        self.CurrentKey: str = ''


class QryCFMMCTradingAccountKeyEntity(Entity):
    """请求查询保证金监管系统经纪公司资金账户密钥"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''


class BrokerUserOTPParamEntity(Entity):
    """用户动态令牌参数"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.OTPVendorsID: str = ''
        self.SerialNumber: str = ''
        self.AuthKey: str = ''
        self.LastDrift: int = 0
        self.LastSuccess: int = 0
        self.OTPType: str = ''


class ManualSyncBrokerUserOTPEntity(Entity):
    """手工同步用户动态令牌"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.OTPType: str = ''
        self.FirstOTP: str = ''
        self.SecondOTP: str = ''


class CommRateModelEntity(Entity):
    """投资者手续费率模板"""

    def __init__(self):
        self.BrokerID: str = ''
        self.CommModelID: str = ''
        self.CommModelName: str = ''


class QryCommRateModelEntity(Entity):
    """请求查询投资者手续费率模板"""

    def __init__(self):
        self.BrokerID: str = ''
        self.CommModelID: str = ''


class MarginModelEntity(Entity):
    """投资者保证金率模板"""

    def __init__(self):
        self.BrokerID: str = ''
        self.MarginModelID: str = ''
        self.MarginModelName: str = ''


class QryMarginModelEntity(Entity):
    """请求查询投资者保证金率模板"""

    def __init__(self):
        self.BrokerID: str = ''
        self.MarginModelID: str = ''


class EWarrantOffsetEntity(Entity):
    """仓单折抵信息"""

    def __init__(self):
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExchangeID: str = ''
        self.InstrumentID: str = ''
        self.Direction: str = ''
        self.HedgeFlag: str = ''
        self.Volume: int = 0
        self.InvestUnitID: str = ''


class QryEWarrantOffsetEntity(Entity):
    """查询仓单折抵信息"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ExchangeID: str = ''
        self.InstrumentID: str = ''
        self.InvestUnitID: str = ''


class QryInvestorProductGroupMarginEntity(Entity):
    """查询投资者品种/跨品种保证金"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.ProductGroupID: str = ''
        self.HedgeFlag: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class InvestorProductGroupMarginEntity(Entity):
    """投资者品种/跨品种保证金"""

    def __init__(self):
        self.ProductGroupID: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.TradingDay: str = ''
        self.SettlementID: int = 0
        self.FrozenMargin: float = 0.0
        self.LongFrozenMargin: float = 0.0
        self.ShortFrozenMargin: float = 0.0
        self.UseMargin: float = 0.0
        self.LongUseMargin: float = 0.0
        self.ShortUseMargin: float = 0.0
        self.ExchMargin: float = 0.0
        self.LongExchMargin: float = 0.0
        self.ShortExchMargin: float = 0.0
        self.CloseProfit: float = 0.0
        self.FrozenCommission: float = 0.0
        self.Commission: float = 0.0
        self.FrozenCash: float = 0.0
        self.CashIn: float = 0.0
        self.PositionProfit: float = 0.0
        self.OffsetAmount: float = 0.0
        self.LongOffsetAmount: float = 0.0
        self.ShortOffsetAmount: float = 0.0
        self.ExchOffsetAmount: float = 0.0
        self.LongExchOffsetAmount: float = 0.0
        self.ShortExchOffsetAmount: float = 0.0
        self.HedgeFlag: str = ''
        self.ExchangeID: str = ''
        self.InvestUnitID: str = ''


class QueryCFMMCTradingAccountTokenEntity(Entity):
    """查询监控中心用户令牌"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.InvestUnitID: str = ''


class CFMMCTradingAccountTokenEntity(Entity):
    """监控中心用户令牌"""

    def __init__(self):
        self.BrokerID: str = ''
        self.ParticipantID: str = ''
        self.AccountID: str = ''
        self.KeyID: int = 0
        self.Token: str = ''


class QryProductGroupEntity(Entity):
    """查询产品组"""

    def __init__(self):
        self.ProductID: str = ''
        self.ExchangeID: str = ''


class ProductGroupEntity(Entity):
    """投资者品种/跨品种保证金产品组"""

    def __init__(self):
        self.ProductID: str = ''
        self.ExchangeID: str = ''
        self.ProductGroupID: str = ''


class BulletinEntity(Entity):
    """交易所公告"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.TradingDay: str = ''
        self.BulletinID: int = 0
        self.SequenceNo: int = 0
        self.NewsType: str = ''
        self.NewsUrgency: str = ''
        self.SendTime: str = ''
        self.Abstract: str = ''
        self.ComeFrom: str = ''
        self.Content: str = ''
        self.URLLink: str = ''
        self.MarketID: str = ''


class QryBulletinEntity(Entity):
    """查询交易所公告"""

    def __init__(self):
        self.ExchangeID: str = ''
        self.BulletinID: int = 0
        self.SequenceNo: int = 0
        self.NewsType: str = ''
        self.NewsUrgency: str = ''


class ReqOpenAccountEntity(Entity):
    """转帐开户请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.Gender: str = ''
        self.CountryCode: str = ''
        self.CustType: str = ''
        self.Address: str = ''
        self.ZipCode: str = ''
        self.Telephone: str = ''
        self.MobilePhone: str = ''
        self.Fax: str = ''
        self.EMail: str = ''
        self.MoneyAccountStatus: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.CashExchangeCode: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.TID: int = 0
        self.UserID: str = ''
        self.LongCustomerName: str = ''


class ReqCancelAccountEntity(Entity):
    """转帐销户请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.Gender: str = ''
        self.CountryCode: str = ''
        self.CustType: str = ''
        self.Address: str = ''
        self.ZipCode: str = ''
        self.Telephone: str = ''
        self.MobilePhone: str = ''
        self.Fax: str = ''
        self.EMail: str = ''
        self.MoneyAccountStatus: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.CashExchangeCode: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.TID: int = 0
        self.UserID: str = ''
        self.LongCustomerName: str = ''


class ReqChangeAccountEntity(Entity):
    """变更银行账户请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.Gender: str = ''
        self.CountryCode: str = ''
        self.CustType: str = ''
        self.Address: str = ''
        self.ZipCode: str = ''
        self.Telephone: str = ''
        self.MobilePhone: str = ''
        self.Fax: str = ''
        self.EMail: str = ''
        self.MoneyAccountStatus: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.NewBankAccount: str = ''
        self.NewBankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.BankAccType: str = ''
        self.InstallID: int = 0
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.BrokerIDByBank: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.TID: int = 0
        self.Digest: str = ''
        self.LongCustomerName: str = ''


class ReqTransferEntity(Entity):
    """转账请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.FutureSerial: int = 0
        self.UserID: str = ''
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.TradeAmount: float = 0.0
        self.FutureFetchAmount: float = 0.0
        self.FeePayFlag: str = ''
        self.CustFee: float = 0.0
        self.BrokerFee: float = 0.0
        self.Message: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.TransferStatus: str = ''
        self.LongCustomerName: str = ''


class RspTransferEntity(Entity):
    """银行发起银行资金转期货响应"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.FutureSerial: int = 0
        self.UserID: str = ''
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.TradeAmount: float = 0.0
        self.FutureFetchAmount: float = 0.0
        self.FeePayFlag: str = ''
        self.CustFee: float = 0.0
        self.BrokerFee: float = 0.0
        self.Message: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.TransferStatus: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.LongCustomerName: str = ''


class ReqRepealEntity(Entity):
    """冲正请求"""

    def __init__(self):
        self.RepealTimeInterval: int = 0
        self.RepealedTimes: int = 0
        self.BankRepealFlag: str = ''
        self.BrokerRepealFlag: str = ''
        self.PlateRepealSerial: int = 0
        self.BankRepealSerial: str = ''
        self.FutureRepealSerial: int = 0
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.FutureSerial: int = 0
        self.UserID: str = ''
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.TradeAmount: float = 0.0
        self.FutureFetchAmount: float = 0.0
        self.FeePayFlag: str = ''
        self.CustFee: float = 0.0
        self.BrokerFee: float = 0.0
        self.Message: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.TransferStatus: str = ''
        self.LongCustomerName: str = ''


class RspRepealEntity(Entity):
    """冲正响应"""

    def __init__(self):
        self.RepealTimeInterval: int = 0
        self.RepealedTimes: int = 0
        self.BankRepealFlag: str = ''
        self.BrokerRepealFlag: str = ''
        self.PlateRepealSerial: int = 0
        self.BankRepealSerial: str = ''
        self.FutureRepealSerial: int = 0
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.FutureSerial: int = 0
        self.UserID: str = ''
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.TradeAmount: float = 0.0
        self.FutureFetchAmount: float = 0.0
        self.FeePayFlag: str = ''
        self.CustFee: float = 0.0
        self.BrokerFee: float = 0.0
        self.Message: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.TransferStatus: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.LongCustomerName: str = ''


class ReqQueryAccountEntity(Entity):
    """查询账户信息请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.FutureSerial: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.LongCustomerName: str = ''


class RspQueryAccountEntity(Entity):
    """查询账户信息响应"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.FutureSerial: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.BankUseAmount: float = 0.0
        self.BankFetchAmount: float = 0.0
        self.LongCustomerName: str = ''


class FutureSignIOEntity(Entity):
    """期商签到签退"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.Digest: str = ''
        self.CurrencyID: str = ''
        self.DeviceID: str = ''
        self.BrokerIDByBank: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0


class RspFutureSignInEntity(Entity):
    """期商签到响应"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.Digest: str = ''
        self.CurrencyID: str = ''
        self.DeviceID: str = ''
        self.BrokerIDByBank: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.PinKey: str = ''
        self.MacKey: str = ''


class ReqFutureSignOutEntity(Entity):
    """期商签退请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.Digest: str = ''
        self.CurrencyID: str = ''
        self.DeviceID: str = ''
        self.BrokerIDByBank: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0


class RspFutureSignOutEntity(Entity):
    """期商签退响应"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.Digest: str = ''
        self.CurrencyID: str = ''
        self.DeviceID: str = ''
        self.BrokerIDByBank: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class ReqQueryTradeResultBySerialEntity(Entity):
    """查询指定流水号的交易结果请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.Reference: int = 0
        self.RefrenceIssureType: str = ''
        self.RefrenceIssure: str = ''
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.CurrencyID: str = ''
        self.TradeAmount: float = 0.0
        self.Digest: str = ''
        self.LongCustomerName: str = ''


class RspQueryTradeResultBySerialEntity(Entity):
    """查询指定流水号的交易结果响应"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.Reference: int = 0
        self.RefrenceIssureType: str = ''
        self.RefrenceIssure: str = ''
        self.OriginReturnCode: str = ''
        self.OriginDescrInfoForReturnCode: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.CurrencyID: str = ''
        self.TradeAmount: float = 0.0
        self.Digest: str = ''


class ReqDayEndFileReadyEntity(Entity):
    """日终文件就绪请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.FileBusinessCode: str = ''
        self.Digest: str = ''


class ReturnResultEntity(Entity):
    """返回结果"""

    def __init__(self):
        self.ReturnCode: str = ''
        self.DescrInfoForReturnCode: str = ''


class VerifyFuturePasswordEntity(Entity):
    """验证期货资金密码"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.AccountID: str = ''
        self.Password: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.InstallID: int = 0
        self.TID: int = 0
        self.CurrencyID: str = ''


class VerifyCustInfoEntity(Entity):
    """验证客户信息"""

    def __init__(self):
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.LongCustomerName: str = ''


class VerifyFuturePasswordAndCustInfoEntity(Entity):
    """验证期货资金密码和客户信息"""

    def __init__(self):
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.CurrencyID: str = ''
        self.LongCustomerName: str = ''


class DepositResultInformEntity(Entity):
    """验证期货资金密码和客户信息"""

    def __init__(self):
        self.DepositSeqNo: str = ''
        self.BrokerID: str = ''
        self.InvestorID: str = ''
        self.Deposit: float = 0.0
        self.RequestID: int = 0
        self.ReturnCode: str = ''
        self.DescrInfoForReturnCode: str = ''


class ReqSyncKeyEntity(Entity):
    """交易核心向银期报盘发出密钥同步请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.Message: str = ''
        self.DeviceID: str = ''
        self.BrokerIDByBank: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0


class RspSyncKeyEntity(Entity):
    """交易核心向银期报盘发出密钥同步响应"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.Message: str = ''
        self.DeviceID: str = ''
        self.BrokerIDByBank: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class NotifyQueryAccountEntity(Entity):
    """查询账户信息通知"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustType: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.FutureSerial: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.BankUseAmount: float = 0.0
        self.BankFetchAmount: float = 0.0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.LongCustomerName: str = ''


class TransferSerialEntity(Entity):
    """银期转账交易流水表"""

    def __init__(self):
        self.PlateSerial: int = 0
        self.TradeDate: str = ''
        self.TradingDay: str = ''
        self.TradeTime: str = ''
        self.TradeCode: str = ''
        self.SessionID: int = 0
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BankAccType: str = ''
        self.BankAccount: str = ''
        self.BankSerial: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.FutureAccType: str = ''
        self.AccountID: str = ''
        self.InvestorID: str = ''
        self.FutureSerial: int = 0
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CurrencyID: str = ''
        self.TradeAmount: float = 0.0
        self.CustFee: float = 0.0
        self.BrokerFee: float = 0.0
        self.AvailabilityFlag: str = ''
        self.OperatorCode: str = ''
        self.BankNewAccount: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class QryTransferSerialEntity(Entity):
    """请求查询转帐流水"""

    def __init__(self):
        self.BrokerID: str = ''
        self.AccountID: str = ''
        self.BankID: str = ''
        self.CurrencyID: str = ''


class NotifyFutureSignInEntity(Entity):
    """期商签到通知"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.Digest: str = ''
        self.CurrencyID: str = ''
        self.DeviceID: str = ''
        self.BrokerIDByBank: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.PinKey: str = ''
        self.MacKey: str = ''


class NotifyFutureSignOutEntity(Entity):
    """期商签退通知"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.Digest: str = ''
        self.CurrencyID: str = ''
        self.DeviceID: str = ''
        self.BrokerIDByBank: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class NotifySyncKeyEntity(Entity):
    """交易核心向银期报盘发出密钥同步处理结果的通知"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.InstallID: int = 0
        self.UserID: str = ''
        self.Message: str = ''
        self.DeviceID: str = ''
        self.BrokerIDByBank: str = ''
        self.OperNo: str = ''
        self.RequestID: int = 0
        self.TID: int = 0
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class QryAccountregisterEntity(Entity):
    """请求查询银期签约关系"""

    def __init__(self):
        self.BrokerID: str = ''
        self.AccountID: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.CurrencyID: str = ''


class AccountregisterEntity(Entity):
    """客户开销户信息表"""

    def __init__(self):
        self.TradeDay: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BankAccount: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.AccountID: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.CustomerName: str = ''
        self.CurrencyID: str = ''
        self.OpenOrDestroy: str = ''
        self.RegDate: str = ''
        self.OutDate: str = ''
        self.TID: int = 0
        self.CustType: str = ''
        self.BankAccType: str = ''
        self.LongCustomerName: str = ''


class OpenAccountEntity(Entity):
    """银期开户信息"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.Gender: str = ''
        self.CountryCode: str = ''
        self.CustType: str = ''
        self.Address: str = ''
        self.ZipCode: str = ''
        self.Telephone: str = ''
        self.MobilePhone: str = ''
        self.Fax: str = ''
        self.EMail: str = ''
        self.MoneyAccountStatus: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.CashExchangeCode: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.TID: int = 0
        self.UserID: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.LongCustomerName: str = ''


class CancelAccountEntity(Entity):
    """银期销户信息"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.Gender: str = ''
        self.CountryCode: str = ''
        self.CustType: str = ''
        self.Address: str = ''
        self.ZipCode: str = ''
        self.Telephone: str = ''
        self.MobilePhone: str = ''
        self.Fax: str = ''
        self.EMail: str = ''
        self.MoneyAccountStatus: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.InstallID: int = 0
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.CashExchangeCode: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.DeviceID: str = ''
        self.BankSecuAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.BankSecuAcc: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.OperNo: str = ''
        self.TID: int = 0
        self.UserID: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.LongCustomerName: str = ''


class ChangeAccountEntity(Entity):
    """银期变更银行账号信息"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.Gender: str = ''
        self.CountryCode: str = ''
        self.CustType: str = ''
        self.Address: str = ''
        self.ZipCode: str = ''
        self.Telephone: str = ''
        self.MobilePhone: str = ''
        self.Fax: str = ''
        self.EMail: str = ''
        self.MoneyAccountStatus: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.NewBankAccount: str = ''
        self.NewBankPassWord: str = ''
        self.AccountID: str = ''
        self.Password: str = ''
        self.BankAccType: str = ''
        self.InstallID: int = 0
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.BrokerIDByBank: str = ''
        self.BankPwdFlag: str = ''
        self.SecuPwdFlag: str = ''
        self.TID: int = 0
        self.Digest: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''
        self.LongCustomerName: str = ''


class SecAgentACIDMapEntity(Entity):
    """二级代理操作员银期权限"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''
        self.BrokerSecAgentID: str = ''


class QrySecAgentACIDMapEntity(Entity):
    """二级代理操作员银期权限查询"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.AccountID: str = ''
        self.CurrencyID: str = ''


class UserRightsAssignEntity(Entity):
    """灾备中心交易权限"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.DRIdentityID: int = 0


class BrokerUserRightAssignEntity(Entity):
    """经济公司是否有在本标示的交易权限"""

    def __init__(self):
        self.BrokerID: str = ''
        self.DRIdentityID: int = 0
        self.Tradeable: int = 0


class DRTransferEntity(Entity):
    """灾备交易转换报文"""

    def __init__(self):
        self.OrigDRIdentityID: int = 0
        self.DestDRIdentityID: int = 0
        self.OrigBrokerID: str = ''
        self.DestBrokerID: str = ''


class FensUserInfoEntity(Entity):
    """Fens用户信息"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.LoginMode: str = ''


class CurrTransferIdentityEntity(Entity):
    """当前银期所属交易中心"""

    def __init__(self):
        self.IdentityID: int = 0


class LoginForbiddenUserEntity(Entity):
    """禁止登录用户"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.IPAddress: str = ''


class QryLoginForbiddenUserEntity(Entity):
    """查询禁止登录用户"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''


class MulticastGroupInfoEntity(Entity):
    """UDP组播组信息"""

    def __init__(self):
        self.GroupIP: str = ''
        self.GroupPort: int = 0
        self.SourceIP: str = ''


class TradingAccountReserveEntity(Entity):
    """资金账户基本准备金"""

    def __init__(self):
        self.BrokerID: str = ''
        self.AccountID: str = ''
        self.Reserve: float = 0.0
        self.CurrencyID: str = ''


class QryLoginForbiddenIPEntity(Entity):
    """查询禁止登录IP"""

    def __init__(self):
        self.IPAddress: str = ''


class QryIPListEntity(Entity):
    """查询IP列表"""

    def __init__(self):
        self.IPAddress: str = ''


class QryUserRightsAssignEntity(Entity):
    """查询用户下单权限分配表"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''


class ReserveOpenAccountConfirmEntity(Entity):
    """银期预约开户确认请求"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.Gender: str = ''
        self.CountryCode: str = ''
        self.CustType: str = ''
        self.Address: str = ''
        self.ZipCode: str = ''
        self.Telephone: str = ''
        self.MobilePhone: str = ''
        self.Fax: str = ''
        self.EMail: str = ''
        self.MoneyAccountStatus: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.InstallID: int = 0
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.TID: int = 0
        self.AccountID: str = ''
        self.Password: str = ''
        self.BankReserveOpenSeq: str = ''
        self.BookDate: str = ''
        self.BookPsw: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class ReserveOpenAccountEntity(Entity):
    """银期预约开户"""

    def __init__(self):
        self.TradeCode: str = ''
        self.BankID: str = ''
        self.BankBranchID: str = ''
        self.BrokerID: str = ''
        self.BrokerBranchID: str = ''
        self.TradeDate: str = ''
        self.TradeTime: str = ''
        self.BankSerial: str = ''
        self.TradingDay: str = ''
        self.PlateSerial: int = 0
        self.LastFragment: str = ''
        self.SessionID: int = 0
        self.CustomerName: str = ''
        self.IdCardType: str = ''
        self.IdentifiedCardNo: str = ''
        self.Gender: str = ''
        self.CountryCode: str = ''
        self.CustType: str = ''
        self.Address: str = ''
        self.ZipCode: str = ''
        self.Telephone: str = ''
        self.MobilePhone: str = ''
        self.Fax: str = ''
        self.EMail: str = ''
        self.MoneyAccountStatus: str = ''
        self.BankAccount: str = ''
        self.BankPassWord: str = ''
        self.InstallID: int = 0
        self.VerifyCertNoFlag: str = ''
        self.CurrencyID: str = ''
        self.Digest: str = ''
        self.BankAccType: str = ''
        self.BrokerIDByBank: str = ''
        self.TID: int = 0
        self.ReserveOpenAccStas: str = ''
        self.ErrorID: int = 0
        self.ErrorMsg: str = ''


class AccountPropertyEntity(Entity):
    """银行账户属性"""

    def __init__(self):
        self.BrokerID: str = ''
        self.AccountID: str = ''
        self.BankID: str = ''
        self.BankAccount: str = ''
        self.OpenName: str = ''
        self.OpenBank: str = ''
        self.IsActive: int = 0
        self.AccountSourceType: str = ''
        self.OpenDate: str = ''
        self.CancelDate: str = ''
        self.OperatorID: str = ''
        self.OperateDate: str = ''
        self.OperateTime: str = ''
        self.CurrencyID: str = ''


class QryCurrDRIdentityEntity(Entity):
    """查询当前交易中心"""

    def __init__(self):
        self.DRIdentityID: int = 0


class CurrDRIdentityEntity(Entity):
    """当前交易中心"""

    def __init__(self):
        self.DRIdentityID: int = 0


class QrySecAgentCheckModeEntity(Entity):
    """查询二级代理商资金校验模式"""

    def __init__(self):
        self.BrokerID: str = ''
        self.InvestorID: str = ''


class QrySecAgentTradeInfoEntity(Entity):
    """查询二级代理商信息"""

    def __init__(self):
        self.BrokerID: str = ''
        self.BrokerSecAgentID: str = ''


class UserSystemInfoEntity(Entity):
    """用户系统信息"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.ClientSystemInfoLen: int = 0
        self.ClientSystemInfo: str = ''
        self.ClientPublicIP: str = ''
        self.ClientIPPort: int = 0
        self.ClientLoginTime: str = ''
        self.ClientAppID: str = ''


class ReqUserAuthMethodEntity(Entity):
    """用户发出获取安全安全登陆方法请求"""

    def __init__(self):
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.UserID: str = ''


class RspUserAuthMethodEntity(Entity):
    """用户发出获取安全安全登陆方法回复"""

    def __init__(self):
        self.UsableAuthMethod: int = 0


class ReqGenUserCaptchaEntity(Entity):
    """用户发出获取安全安全登陆方法请求"""

    def __init__(self):
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.UserID: str = ''


class RspGenUserCaptchaEntity(Entity):
    """生成的图片验证码信息"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.CaptchaInfoLen: int = 0
        self.CaptchaInfo: str = ''


class ReqGenUserTextEntity(Entity):
    """用户发出获取安全安全登陆方法请求"""

    def __init__(self):
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.UserID: str = ''


class RspGenUserTextEntity(Entity):
    """短信验证码生成的回复"""

    def __init__(self):
        self.UserTextSeq: int = 0


class ReqUserLoginWithCaptchaEntity(Entity):
    """用户发出带图形验证码的登录请求请求"""

    def __init__(self):
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.Password: str = ''
        self.UserProductInfo: str = ''
        self.InterfaceProductInfo: str = ''
        self.ProtocolInfo: str = ''
        self.MacAddress: str = ''
        self.ClientIPAddress: str = ''
        self.LoginRemark: str = ''
        self.Captcha: str = ''
        self.ClientIPPort: int = 0


class ReqUserLoginWithTextEntity(Entity):
    """用户发出带短信验证码的登录请求请求"""

    def __init__(self):
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.Password: str = ''
        self.UserProductInfo: str = ''
        self.InterfaceProductInfo: str = ''
        self.ProtocolInfo: str = ''
        self.MacAddress: str = ''
        self.ClientIPAddress: str = ''
        self.LoginRemark: str = ''
        self.Text: str = ''
        self.ClientIPPort: int = 0


class ReqUserLoginWithOTPEntity(Entity):
    """用户发出带动态验证码的登录请求请求"""

    def __init__(self):
        self.TradingDay: str = ''
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.Password: str = ''
        self.UserProductInfo: str = ''
        self.InterfaceProductInfo: str = ''
        self.ProtocolInfo: str = ''
        self.MacAddress: str = ''
        self.ClientIPAddress: str = ''
        self.LoginRemark: str = ''
        self.OTPPassword: str = ''
        self.ClientIPPort: int = 0


class ReqApiHandshakeEntity(Entity):
    """api握手请求"""

    def __init__(self):
        self.CryptoKeyVersion: str = ''


class RspApiHandshakeEntity(Entity):
    """front发给api的握手回复"""

    def __init__(self):
        self.FrontHandshakeDataLen: int = 0
        self.FrontHandshakeData: str = ''
        self.IsApiAuthEnabled: int = 0


class ReqVerifyApiKeyEntity(Entity):
    """api给front的验证key的请求"""

    def __init__(self):
        self.ApiHandshakeDataLen: int = 0
        self.ApiHandshakeData: str = ''


class DepartmentUserEntity(Entity):
    """操作员组织架构关系"""

    def __init__(self):
        self.BrokerID: str = ''
        self.UserID: str = ''
        self.InvestorRange: str = ''
        self.InvestorID: str = ''


class QueryFreqEntity(Entity):
    """查询频率，每秒查询比数"""

    def __init__(self):
        self.QueryFreq: int = 0
